/*
 * Taima Pillar Renderer: site-wide form styling (Contact Form 7) on the dark brand background.
 * Loaded on every front-end page. Scoped to .wpcf7 so nothing else is affected.
 */

.wpcf7 {
	--tpf-gold: #c9a84c;
	--tpf-text: #ffffff;
	--tpf-border: rgba(255, 255, 255, 0.18);
}

.wpcf7 form.wpcf7-form p {
	margin: 0 0 1rem;
}

.wpcf7 form.wpcf7-form label {
	color: var(--tpf-text);
	display: block;
	font-size: 0.95rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	background: #121212;
	border: 1px solid var(--tpf-border);
	border-radius: 6px;
	color: var(--tpf-text);
	display: block;
	margin-top: 0.35rem;
	padding: 0.75rem 0.9rem;
	width: 100%;
}

.wpcf7 input:focus-visible,
.wpcf7 select:focus-visible,
.wpcf7 textarea:focus-visible {
	border-color: var(--tpf-gold);
	outline: 2px solid var(--tpf-gold);
	outline-offset: 1px;
}

.wpcf7 input[type="submit"] {
	background: var(--tpf-gold);
	border: 0;
	border-radius: 999px;
	color: #080808;
	cursor: pointer;
	font-weight: 600;
	padding: 0.8rem 1.75rem;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus-visible {
	background: #e2be70;
}

.wpcf7 .wpcf7-response-output {
	border-color: var(--tpf-gold);
	color: var(--tpf-text);
}

.wpcf7 .wpcf7-not-valid-tip {
	color: #ff8a8a;
}

/* v1.2.3: breathing room between block-editor sections and the card grid. */
.entry-content .wp-block-buttons + h2,
.entry-content .wp-block-buttons + .wp-block-heading {
	margin-top: 3rem;
}

.entry-content > p + .tpf-cards,
.entry-content .tpf-cards {
	margin-top: 1.5rem;
}

/* v1.2.4: block-editor buttons match the header button (gold pill); outline variant for secondary actions. */
.entry-content .wp-block-button .wp-block-button__link {
	background: #c9a84c;
	border: 2px solid #c9a84c;
	border-radius: 999px;
	color: #080808;
	font-weight: 600;
	padding: 0.8rem 1.75rem;
	text-decoration: none;
}

.entry-content .wp-block-button .wp-block-button__link:hover,
.entry-content .wp-block-button .wp-block-button__link:focus-visible {
	background: #e2be70;
	border-color: #e2be70;
	color: #080808;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: #c9a84c;
	color: #ffffff;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	background: rgba(201, 168, 76, 0.15);
	border-color: #e2be70;
	color: #ffffff;
}

/* Mobile menu toggle: visible on the dark header. */
.elementor-menu-toggle,
.e-n-menu-toggle {
	color: #ffffff !important;
}

.elementor-menu-toggle svg,
.e-n-menu-toggle svg {
	fill: #ffffff !important;
}

/* Page headings share the pillar-page serif; falls back to Georgia if the font is not loaded. */
.entry-title,
.entry-content h1 {
	font-family: var(--e-global-typography-primary-font-family, "Playfair Display"), Georgia, serif;
}

/* v1.2.5: page layout and type scale.
   Text sits in a centred 800px column; card grids and wide blocks use 1100px. */
.entry-content {
	font-size: 1rem;
	line-height: 1.7;
}

.entry-content > * {
	margin-left: auto;
	margin-right: auto;
	max-width: 800px;
}

.entry-content > .tpf-cards,
.entry-content > .wp-block-shortcode,
.entry-content > .alignwide {
	max-width: 1100px;
}

.page .entry-header,
.page .inside-article > .entry-header {
	margin-left: auto;
	margin-right: auto;
	max-width: 800px;
}

.entry-title,
.entry-content > h1 {
	font-size: clamp(2rem, 3.6vw, 2.75rem);
	line-height: 1.15;
	margin-bottom: 1rem;
}

.entry-content > h2 {
	color: #c9a84c;
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	line-height: 1.3;
	margin-bottom: 0.75rem;
	margin-top: 2.5rem;
}

.entry-content > h3 {
	font-size: clamp(1.125rem, 1.6vw, 1.25rem);
	line-height: 1.35;
	margin-bottom: 0.5rem;
	margin-top: 1.5rem;
}

/* Home: "Build. Access. Win." as a gold eyebrow above the H1. */
.home .entry-content > p:first-child {
	color: #c9a84c;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

/* Tables: subtle borders on the dark background. */
.entry-content .wp-block-table table,
.entry-content .wp-block-table td,
.entry-content .wp-block-table th {
	border-color: rgba(255, 255, 255, 0.18);
}

.entry-content .wp-block-table th {
	color: #c9a84c;
}

/* v1.2.6: table header rule matches the other borders. */
.entry-content .wp-block-table thead {
	border-bottom: 2px solid rgba(255, 255, 255, 0.18);
}

/* v1.2.7: phone header. The "Book a Consultation" button sat flush against the screen edge. */
@media (max-width: 767px) {
	.elementor-location-header {
		box-sizing: border-box;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.elementor-location-header .elementor-button {
		font-size: 0.9rem;
		padding: 0.6rem 1rem;
	}
}

/* v1.2.8: phone menu dropdown on the dark brand palette (it rendered as a white box).
   !important is needed: Elementor writes widget colours with higher specificity. */
.elementor-nav-menu--dropdown {
	background: #0d0d0d !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
}

.elementor-nav-menu--dropdown a,
.elementor-nav-menu--dropdown .elementor-item {
	background: transparent !important;
	color: #ffffff !important;
}

.elementor-nav-menu--dropdown a:hover,
.elementor-nav-menu--dropdown a:focus-visible,
.elementor-nav-menu--dropdown a.elementor-item-active {
	background: rgba(201, 168, 76, 0.15) !important;
	color: #c9a84c !important;
}
