/*
Theme Name: Company Page Followers
Description: Brutalist classic theme. Copy and navigation come from WordPress (posts, menus). Optional REST helpers live under company-page-followers/v1; theme_design table can layer extra CSS via API.
Version: 1.5.9
Requires at least: 6.4
Tested up to: 6.9
Text Domain: company-page-followers
*/

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.55;
	color: #2a2a2a;
	background: #e6e6e3;
}

/* Background art — softer */
.cpf-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-color: #5a5a58;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.14;
	pointer-events: none;
}

.cpf-overlay {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
	gap: 0.65rem;
}

/* Site name + Menu — same row, above the card */
.cpf-top-bar {
	width: 100%;
	max-width: 52rem;
	margin: 0 auto;
	padding: 0 0.15rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

/* Site name — outside the card, low emphasis */
.cpf-brand {
	flex: 1 1 auto;
	min-width: 0;
}

.cpf-brand__link {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #7a7a76;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.cpf-brand__link:hover,
.cpf-brand__link:focus-visible {
	color: #3a3a38;
	text-decoration: underline;
	text-underline-offset: 3px;
	outline: none;
}

.cpf-primary-nav-wrap {
	position: relative;
	flex: 0 0 auto;
}

.cpf-menu-btn {
	list-style: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #3a3a38;
	background: #f0f0ec;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 6px;
	padding: 0.45rem 0.85rem;
	line-height: 1.2;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.cpf-menu-btn::-webkit-details-marker {
	display: none;
}

.cpf-menu-btn::marker {
	content: '';
}

.cpf-menu-btn:hover,
.cpf-menu-btn:focus-visible {
	background: #e8e8e4;
	color: #141414;
	outline: none;
}

.cpf-primary-nav-wrap[open] .cpf-menu-btn {
	border-color: rgba(0, 0, 0, 0.22);
	box-shadow: none;
}

.cpf-primary-nav-drawer {
	position: absolute;
	right: 0;
	top: calc(100% + 0.35rem);
	z-index: 50;
	min-width: min(14rem, calc(100vw - 2rem));
	max-width: min(20rem, calc(100vw - 2rem));
	padding: 0.5rem 0.65rem;
	background: #fafaf8;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cpf-primary-nav-drawer .cpf-nav ul {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.15rem 0;
}

.cpf-primary-nav-drawer .cpf-nav a {
	padding: 0.4rem 0.35rem;
	width: 100%;
	border-radius: 4px;
}

.cpf-panel {
	width: 100%;
	max-width: 52rem;
	margin: 0 auto;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	background: #fafaf8;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.cpf-panel__inner {
	padding: clamp(1.35rem, 3.5vw, 2rem);
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.cpf-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
}

.cpf-nav a {
	font-weight: 500;
	text-transform: none;
	font-size: 0.875rem;
	letter-spacing: 0.01em;
	color: #444;
	text-decoration: none;
	border: none;
	padding: 0.35rem 0.15rem;
	display: inline-block;
	border-radius: 4px;
}

.cpf-nav a:hover,
.cpf-nav a:focus-visible {
	color: #111;
	text-decoration: underline;
	text-underline-offset: 3px;
	outline: none;
	background: transparent;
}

.cpf-main {
	flex: 1 1 auto;
}

.cpf-entry {
	margin-bottom: 2rem;
}

.cpf-entry:last-child {
	margin-bottom: 0;
}

.cpf-entry-header {
	margin-bottom: 1rem;
	padding-bottom: 0;
	border-bottom: none;
}

.cpf-entry-title {
	margin: 0;
	font-size: clamp(1.35rem, 2.8vw, 1.65rem);
	font-weight: 600;
	text-transform: none;
	letter-spacing: -0.02em;
	color: #1c1c1c;
	line-height: 1.25;
}

.cpf-entry-title a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.cpf-entry-title a:hover,
.cpf-entry-title a:focus-visible {
	background: transparent;
	color: #000;
	border-bottom-color: #000;
	outline: none;
}

.cpf-entry-content {
	max-width: 48rem;
}

.cpf-entry-content > *:first-child {
	margin-top: 0;
}

.cpf-entry-content > *:last-child {
	margin-bottom: 0;
}

/* Order page: title band — flat grey; light bottom border only */
.cpf-entry--order-flow {
	position: relative;
}

.cpf-entry--order-flow .cpf-entry-header {
	--cpf-panel-pad: clamp(1.35rem, 3.5vw, 2rem);
	margin-left: calc(-1 * var(--cpf-panel-pad));
	margin-right: calc(-1 * var(--cpf-panel-pad));
	margin-top: calc(-1 * var(--cpf-panel-pad));
	margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
	padding: clamp(1.1rem, 2.5vw, 1.45rem) var(--cpf-panel-pad);
	background: #dededc;
	border-bottom: 1px solid #d4d4d0;
	border-radius: 9px 9px 0 0;
	position: relative;
	z-index: 0;
}

/* Order-flow title band: when Menu exists above the panel, don’t double-stack negative margins */
.cpf-overlay:has(.cpf-primary-nav-wrap) .cpf-panel__inner > main .cpf-entry--order-flow .cpf-entry-header {
	margin-top: 0;
	border-radius: 0;
}

.cpf-entry--order-flow .cpf-entry-title {
	color: #141414;
}

.cpf-entry--order-flow .cpf-entry-content {
	position: relative;
	z-index: 1;
}

.cpf-footer {
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: none;
}

.cpf-footer-links-bar {
	margin: 0 0 1rem;
	padding: 0.65rem 0.9rem;
	background: #f0f0ec;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 8px;
	box-shadow:
		0 4px 16px rgba(0, 0, 0, 0.07),
		0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.cpf-footer-links-bar__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.85rem;
	row-gap: 0.45rem;
}

.cpf-footer-links-bar__item {
	margin: 0;
	padding: 0;
}

.cpf-footer-links-bar__link {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: none;
	color: #3a3a38;
	text-decoration: none;
	border-radius: 4px;
	padding: 0.2rem 0.05rem;
	display: inline-block;
}

.cpf-footer-links-bar__link:hover,
.cpf-footer-links-bar__link:focus-visible {
	color: #141414;
	text-decoration: underline;
	text-underline-offset: 3px;
	outline: none;
}

.cpf-footer-meta {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0.02em;
	color: #888;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #0a0a0a;
	color: #fff;
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 0.5rem;
	padding: 0.5rem 1rem;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

/* —— Order form + thank-you ([cpf_order_form] shortcode) —— */

.cpf-fieldset {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	border: 3px solid #0a0a0a;
	border-radius: 4px;
	background: #fff;
}

.cpf-legend {
	padding: 0 0.35rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.9rem;
	color: #0a0a0a;
}

.cpf-choice {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.5rem;
	font-weight: 700;
	cursor: pointer;
	color: #0a0a0a;
}

.cpf-choice input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: #0a0a0a;
}

.cpf-label {
	display: block;
	margin: 0 0 0.4rem;
	font-weight: 700;
	font-size: 0.9rem;
	color: #0a0a0a;
}

.cpf-input {
	display: block;
	width: 100%;
	max-width: 28rem;
	margin: 0 0 0.5rem;
	padding: 0.5rem 0.6rem;
	font: inherit;
	border: 3px solid #0a0a0a;
	border-radius: 2px;
	background: #fff;
	color: #0a0a0a;
}

.cpf-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.cpf-order-btn {
	font: inherit;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.5rem 1rem;
	border: 3px solid #0a0a0a;
	border-radius: 2px;
	background: #fff;
	color: #0a0a0a;
	cursor: pointer;
}

.cpf-order-btn:hover,
.cpf-order-btn:focus-visible {
	background: #0a0a0a;
	color: #fff;
	outline: none;
	border-color: #0a0a0a;
}

.cpf-summary-dl {
	margin: 0;
	display: grid;
	gap: 0.35rem 1rem;
}

.cpf-summary-dt {
	margin: 0;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: #0a0a0a;
}

.cpf-summary-dd {
	margin: 0 0 0.75rem;
	font-weight: 600;
	word-break: break-word;
	color: #0a0a0a;
}

.cpf-summary-dd:last-of-type {
	margin-bottom: 0;
}

.cpf-field-group {
	margin-bottom: 1.25rem;
}

.cpf-price-note {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: #444;
}

.cpf-price-total {
	font-weight: 700;
	font-size: 1.1rem;
}

.cpf-input--narrow {
	max-width: 10rem;
}

.cpf-field-group--phone .cpf-label {
	display: block;
	margin-bottom: 0.35rem;
}

.cpf-phone-row {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.cpf-phone-plus {
	display: flex;
	align-items: center;
	font-weight: 700;
	font-size: 1.05rem;
	color: #1c1c1c;
	padding: 0 0.1rem;
}

.cpf-input--cc {
	flex: 0 0 auto;
	max-width: 4.75rem;
}

.cpf-input--national {
	flex: 1 1 12rem;
	min-width: 0;
}

.cpf-field-error {
	margin: 0.4rem 0 0;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
	color: #8b1538;
}

.cpf-field-hint {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: #555;
}

.cpf-order-msg {
	padding: 0.75rem 1rem;
	border: 3px solid #0a0a0a;
	border-radius: 4px;
	background: #fff3f3;
	font-weight: 700;
	margin-bottom: 1.25rem;
	color: #3a1010;
}

.cpf-order-thanks .cpf-thanks-title {
	margin: 0 0 1rem;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	text-transform: none;
	font-weight: 600;
	color: #1c1c1c;
}

.cpf-summary-dl--thanks {
	margin-bottom: 1.5rem;
}

.cpf-whatsapp-lead {
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: #0a0a0a;
}

.cpf-order-btn--whatsapp {
	display: inline-block;
	text-decoration: none;
	text-align: center;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.5rem 1rem;
	background: #25d366;
	color: #0a0a0a;
	border: 3px solid #0a0a0a;
	border-radius: 2px;
}

.cpf-order-btn--whatsapp:hover,
.cpf-order-btn--whatsapp:focus-visible {
	background: #128c7e;
	color: #fff;
	border-color: #0a0a0a;
}

.cpf-input--textarea {
	min-height: 8rem;
	max-width: 36rem;
	resize: vertical;
	line-height: 1.45;
}

.cpf-contact-success.cpf-order-msg {
	background: #e8f5e9;
	border-color: #2e7d32;
	color: #1b5e20;
}
