/*
Theme Name: Partner Bridge
Theme URI: https://example.com/
Author: Partner Bridge
Description: Block theme for Partner Bridge — services overview homepage, pages for Marketing, Admin & Automation, Lead Generation, Talent Solutions and Shop Operations, and a discovery-call booking page (works with the Partner Bridge Booking plugin).
Version: 1.6.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: partner-bridge
*/

/* ---------- Brand details the block editor can't express on its own ---------- */

/* Italic serif highlight: italicise any words inside a heading */
h1 em, h2 em, h3 em, .pb-accent {
	font-family: var(--wp--preset--font-family--lora);
	font-style: italic;
	font-weight: 500;
	color: var(--wp--preset--color--teal);
	letter-spacing: 0;
}
.has-navy-background-color h1 em, .has-navy-background-color h2 em,
.has-navy-deep-background-color h2 em { color: #8FD3CB; }

/* Small tracked label above headings, e.g. HOW WE WORK TOGETHER */
.pb-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-weight: 700;
	font-size: 0.8125rem !important;
	color: var(--wp--preset--color--teal);
	margin-bottom: 0.5rem !important;
}
.has-navy-background-color .pb-eyebrow { color: #8FD3CB; }

.pb-muted { color: var(--wp--preset--color--muted); }

/* Cards */
.pb-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	height: 100%;
	box-sizing: border-box;
}
.pb-card.is-featured { border: 2px solid var(--wp--preset--color--teal); }
.wp-block-columns.pb-equal > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.pb-equal > .wp-block-column > .pb-card { flex: 1; }

/* Ticks in feature lists */
.pb-ticks { list-style: none; padding-left: 0; }
.pb-ticks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; }
.pb-ticks li::before {
	content: ""; position: absolute; left: 0; top: 0.45em;
	width: 1rem; height: 0.55rem;
	border-left: 2.5px solid var(--wp--preset--color--teal);
	border-bottom: 2.5px solid var(--wp--preset--color--teal);
	transform: rotate(-45deg) translateY(-2px);
}

/* Six-step process row */
.pb-steps { position: relative; }
.pb-step-num {
	width: 72px; height: 72px; border-radius: 50%;
	display: flex !important; align-items: center; justify-content: center;
	font-weight: 700; font-size: 1.6rem !important; line-height: 1 !important;
	border: 2px solid var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--white);
	margin: 0 0 1.25rem !important;
	position: relative; z-index: 1;
}
.pb-step-num.is-done { background: var(--wp--preset--color--navy); color: #fff; }
.pb-step-num.is-key { background: var(--wp--preset--color--teal); border-color: var(--wp--preset--color--teal); color: #fff; }
.pb-steps > .wp-block-column { position: relative; }
@media (min-width: 782px) {
	.pb-steps > .wp-block-column:not(:last-child)::before {
		content: ""; position: absolute; top: 35px; left: 72px; right: -2rem;
		height: 3px; background: var(--wp--preset--color--line);
	}
}
.pb-step-label {
	text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
	font-size: 0.75rem !important; color: var(--wp--preset--color--teal);
	margin-bottom: 0.25rem !important;
}

/* Navy notice bar with icon tile */
.pb-notice { border-radius: 16px; }
.pb-icon-tile {
	width: 56px; height: 56px; border-radius: 12px; flex: none;
	background: var(--wp--preset--color--teal);
	display: flex; align-items: center; justify-content: center;
}
.pb-icon-tile svg { width: 26px; height: 26px; }

/* Image placeholders: replace with real photos */
.pb-placeholder {
	border: 2px dashed var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--muted);
	display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: 220px; padding: 1.5rem; box-sizing: border-box;
}

/* Tag pills (e.g. Concept project) */
.pb-pill {
	width: fit-content; align-self: flex-start;
	display: inline-block; border-radius: 999px; padding: 0.25rem 0.75rem !important;
	background: var(--wp--preset--color--teal-soft); color: var(--wp--preset--color--teal);
	font-size: 0.75rem !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* FAQ using core Details block */
.wp-block-details {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px; padding: 1.1rem 1.4rem;
}
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: 0.5rem; }

/* Header */
.pb-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.pb-logo-mark {
	width: 40px; height: 40px; border-radius: 50%; flex: none;
	background: var(--wp--preset--color--navy); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
	border: 3px solid var(--wp--preset--color--teal); box-sizing: border-box;
	text-decoration: none !important;
}

/* Footer links */
.pb-footer a { color: #C8D4DF; text-decoration: none; }
.pb-footer a:hover { color: #fff; text-decoration: underline; }

/* Focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--teal);
	outline-offset: 2px;
}

/* Section spacing */
.pb-section { padding-top: var(--wp--preset--spacing--70) !important; padding-bottom: var(--wp--preset--spacing--70) !important; }
.pb-section-sm { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.pb-hero { padding-top: var(--wp--preset--spacing--60) !important; }
main > .wp-block-post-content > .alignfull:first-child { margin-top: 0; }
.wp-block-post-content > * + .alignfull,
.wp-block-post-content > .alignfull + * { margin-block-start: 0; }

/* Outline buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--navy);
	border: 2px solid var(--wp--preset--color--navy);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }
.wp-block-button.pb-on-dark > .wp-block-button__link { color: #fff; border-color: #fff; }
.wp-block-button.pb-on-dark > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); }

/* Mobile tweaks */
@media (max-width: 781px) {
	.pb-notice { flex-wrap: wrap !important; }
	.pb-step-num { width: 60px; height: 60px; }
}
@media (max-width: 600px) {
	.pb-header .wp-block-buttons { display: none; } /* the hero already has the booking button */
}

/* Service cards, tables, anchors (v1.2) */
.pb-icon-tile.is-soft { width: 48px; height: 48px; background: var(--wp--preset--color--teal-soft); }
.pb-icon-tile.is-soft svg { width: 24px; height: 24px; }
.pb-card .pb-pill + h3, .pb-card .pb-pill + .wp-block-heading { margin-top: 0.75rem; }
.pb-card > .wp-block-buttons:last-child { margin-top: 1.5rem; }
.pb-anchor { display: block; position: relative; top: -100px; visibility: hidden; height: 0; }
[id] { scroll-margin-top: 24px; }
.pb-table table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; overflow: hidden; }
.pb-table th, .pb-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.9rem 1.2rem; text-align: left; vertical-align: top; font-size: 0.95rem; }
.pb-table tr:last-child td { border-bottom: 0; }
.pb-table thead th { background: var(--wp--preset--color--navy); color: #fff; font-weight: 700; }
.pb-table td:first-child { font-weight: 600; color: var(--wp--preset--color--navy); }
.pb-compare td:last-child, .pb-compare th:last-child { background: var(--wp--preset--color--teal-soft); }
.pb-compare thead th:last-child { background: var(--wp--preset--color--teal); }
.wp-block-table.pb-table { margin-top: 2rem; overflow-x: auto; }
@media (max-width: 600px) { .pb-table th, .pb-table td { padding: 0.7rem 0.8rem; font-size: 0.875rem; } }

/* v1.3: legal pages, small notes in cards */
.pb-legal { padding-left: 1.25rem; }
.pb-legal li { margin-bottom: 0.4rem; }
.pb-card .pb-muted.has-small-font-size:last-child { margin-top: 1rem; }

/* "Starts at" price line (international services only) */
.pb-starts { margin-top: 0.5rem !important; }
.pb-starts-chip {
	display: inline-block;
	background: var(--wp--preset--color--teal-soft);
	color: var(--wp--preset--color--navy);
	border-radius: 999px;
	padding: 0.45rem 1rem;
	font-size: 0.95rem;
}
.pb-starts-chip strong { color: var(--wp--preset--color--teal); font-weight: 800; }

/* v1.5: images */
.pb-img img { border-radius: 16px; width: 100%; height: auto; display: block; }
.pb-img { margin: 0; }
.pb-card > .pb-img:first-child { margin: -0.5rem -0.5rem 1.25rem; }
.pb-card > .pb-img:first-child img { border-radius: 10px; }
.pb-img-small { max-width: 260px; margin-top: 2rem !important; }


/* Contact page: stacked cards keep their natural height */
.pb-card.pb-card-auto { height: auto; }
.pb-card.pb-card-auto > .wp-block-buttons { margin-top: 1rem; }
