/*
Theme Name: contribe
Theme URI: 
Author: Contribe Studio
Author URI: 
Description: The official theme for Contribe Studio
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.3
Version: 1.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: contribe
Tags: blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks

contribe WordPress Theme, (C) 2026 Mike McAlister.
contribe is distributed under the terms of the GNU GPL.
*/

/* CSS Reset
---------------------------------------------------------------------------- */

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

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
	padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
	padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 0;
	margin-top: 20px;
	text-align: center;
}

img,
figure {
	max-width: 100%;
	height: auto;
}

/* Temporary fix for text-decoration-thickness in Firefox */
@-moz-document url-prefix() {
	a {
		text-decoration-thickness: .1rem !important;
	}
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
	font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
	appearance: none;
}

input:not([type="submit"]):not([type="radio"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--main);
	border-radius: 5px;
	border: solid 1px color-mix(in srgb, var(--wp--preset--color--tertiary) 100%, var(--wp--preset--color--main) 20%);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--small);
	background-color: #fff;
	box-shadow: 
		0 1px 2px rgba(0, 0, 0, 0.02),
		0 0.5px 1px rgba(0, 0, 0, 0.04);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline-color: var(--wp--preset--color--main);
	outline-offset: 1px;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

select {
	-webkit-appearance: none;
	appearance: none;
	background: var(--wp--preset--color--base) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=) no-repeat;
    background-size: 16px;
    background-position: calc(100% - 12px) 50%;
	padding-right: 2.2em;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
	display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--tertiary);
	padding: 3px 5px;
	position: relative;
	border-radius: 3px;
}

.wp-block-categories {
	position: relative;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding .wp-block-post-template li:last-child .wp-block-separator {
	display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
	display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
	display: none;
}

.row-logos > figure {
	flex-shrink: 1 !important;
}

/* Sticky header */

body:not(.wp-admin) header:has(>.is-position-sticky) {
	position: sticky;
	top: calc( 0px + var( --wp-admin--admin-bar--height, 0px ) );
	z-index: 100;
}

/* Account for admin bar on mobile */

@media (max-width: 600px) {
	header:has(>.is-position-sticky) {
		top: 0;
	}
}

/* Mobile helper classes */

@media (max-width: 781px) {
	.contribe-hide-on-mobile {
		display: none;
	}

	.contribe-unstick-mobile {
		position: static;
	}

	header:has(>.contribe-unstick-mobile) {
		position: static;
	}
}

/* Table
--------------------------------------------- */

.wp-block-table table {
	background: var(--wp--preset--color--base);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--border-light);
	font-size: var(--wp--preset--font-size--x-small);
}
.wp-block-table.is-style-stripes {
	border-bottom: none;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--tertiary);
}

.wp-block-table td, 
.wp-block-table th,
.wp-block-table thead {
	border: none;
	border-bottom: solid 1px color-mix(in srgb, var(--wp--preset--color--border-light) 50%, var(--wp--preset--color--base) 5%);
}

.wp-block-table th,
.wp-block-table tfoot {
	text-align: left;
	background-color: color-mix(in srgb, var(--wp--preset--color--tertiary) 75%, var(--wp--preset--color--base) 5%);
}

.wp-block-table td, 
.wp-block-table th {
	padding: .8em 1em;
}

.wp-block-table tfoot {
	border-top: solid 1px var(--wp--preset--color--border-light);
}

.wp-block-table tfoot td {
	border-bottom: none;
}

/* Agency Custom Patterns
--------------------------------------------- */

/* Service Card Styles */
.service-card {
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
	margin-bottom: 0.5rem;
}

/* Service Detail Cards */
.service-detail-card {
	transition: all 0.3s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.service-detail-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.service-detail-card .service-icon {
	margin: 0;
	margin-bottom: 0.5rem;
}

.service-detail-card ul {
	list-style-type: none;
	padding: 0;
}

.service-detail-card li {
	padding-left: 1.5rem;
	position: relative;
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--secondary);
	font-size: 0.9rem;
}

.service-detail-card li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--primary);
	font-weight: bold;
}

/* Testimonial Cards */
.testimonial-card {
	transition: all 0.3s ease;
}

.testimonial-card:hover {
	border-color: var(--wp--preset--color--primary);
	background-color: #FFFFFF;
}

.testimonial-card p:first-child {
	font-style: italic;
	line-height: 1.8;
}

/* Process Steps */
.process-step {
	transition: all 0.3s ease;
	position: relative;
}

.process-step:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.process-steps-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(240px, 1fr));
	gap: var(--wp--preset--spacing--large);
}

@media (max-width: 1024px) {
	.process-steps-grid {
		grid-template-columns: repeat(2, minmax(220px, 1fr));
	}
}

@media (max-width: 768px) {
	.process-steps-grid {
		grid-template-columns: 1fr;
	}
}

/* Portfolio Grid Enhancement */
.wp-block-group [style*="grid"] > .wp-block-group {
	overflow: hidden;
	border-radius: 1rem;
}

/* Agency Hero Adjustments */
.wp-block-cover.is-light[style*="padding"] h1 {
	max-width: 100%;
	word-wrap: break-word;
}

/* Team Cards */
.team-card {
	transition: all 0.3s ease;
	text-align: center;
}

.team-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Pricing Cards */
.pricing-card {
	transition: all 0.3s ease;
}

.pricing-card.pricing-featured {
	transform: scale(1.02);
}

.pricing-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pricing-card ul {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}

.pricing-card li {
	padding-left: 1.5rem;
	position: relative;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--secondary);
	font-size: 0.9rem;
}

.pricing-card li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--primary);
	font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 782px) {
	.service-card,
	.service-detail-card,
	.testimonial-card,
	.process-step,
	.team-card,
	.pricing-card {
		transform: none !important;
	}

	.service-card:hover,
	.service-detail-card:hover,
	.process-step:hover,
	.team-card:hover,
	.pricing-card:hover {
		transform: none !important;
	}

	.service-detail-card li {
		padding-left: 1.5rem;
	}

	.pricing-card.pricing-featured {
		transform: none;
	}
}

/* New Pattern Styles */

/* Stats/Achievements Section */
.wp-block-column:has(> .wp-block-heading:has-text("+")) {
	transition: all 0.3s ease;
}

/* FAQ Section */
.wp-block-group:has(> .wp-block-heading:contains("Question")) {
	border-left: 4px solid var(--wp--preset--color--primary);
	padding-left: 1rem;
	transition: background-color 0.3s ease;
}

.wp-block-group:has(> .wp-block-heading:contains("Question")):hover {
	background-color: rgba(0, 0, 0, 0.02);
}

/* Trust Badges */
.wp-block-column:has(> .wp-block-paragraph:contains("Award")) {
	transition: transform 0.3s ease;
}

.wp-block-column:has(> .wp-block-paragraph:contains("Award")):hover {
	transform: translateY(-4px);
}

/* Case Study Results */
.wp-block-group:has(> .wp-block-heading:contains("Results")) {
	border-radius: 8px;
	background: linear-gradient(135deg, var(--wp--preset--color--secondary) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Service Comparison Table */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table td,
.wp-block-table th {
	padding: 12px;
	text-align: left;
	border: 1px solid var(--wp--preset--color--tertiary);
}

.wp-block-table th {
	background-color: var(--wp--preset--color--secondary);
	color: #ffffff;
	font-weight: 600;
}

.wp-block-table tr:nth-child(even) {
	background-color: rgba(0, 0, 0, 0.02);
}

/* Newsletter Section */
.wp-block-group:has(> .wp-block-heading:contains("Stay Updated")) {
	border-radius: 8px;
	overflow: hidden;
}

/* Footer Links */
.wp-block-group:has(> .wp-block-heading:contains("Contribe")):has(+ .wp-block-columns) {
	margin-top: 2rem;
}

.wp-block-group:has(> .wp-block-heading:contains("Contribe")) + .wp-block-columns .wp-block-column {
	transition: transform 0.3s ease;
}

.wp-block-group:has(> .wp-block-heading:contains("Contribe")) + .wp-block-columns .wp-block-column:hover {
	transform: translateY(-2px);
}

/* Mobile Responsive for New Patterns */
@media (max-width: 782px) {
	.wp-block-column:has(> .wp-block-paragraph:contains("Award")):hover {
		transform: none;
	}
	
	.wp-block-group:has(> .wp-block-heading:contains("Contribe")) + .wp-block-columns .wp-block-column:hover {
		transform: none;
	}
}
