/*
Theme Name: Transcertify
Theme URI: https://transcertify.com
Author: Lingua Int Language Services, SLU
Description: Custom block theme for Transcertify – sworn translations in Spain.
Version: 0.8.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: transcertify
*/

/* Layout helpers ------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Brand square (orange tilted square from the logo) */
.tc-square-list { list-style: none; padding-left: 0; }
.tc-square-list li,
.tc-square-item {
	position: relative;
	padding-left: 26px;
}
.tc-square-list li::before,
.tc-square-item::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.5em;
	width: 10px;
	height: 10px;
	background: var(--wp--preset--color--accent);
	transform: rotate(-12deg);
}

/* Header */
.tc-header { border-bottom: 1px solid #E4E9F2; }
.tc-header .tc-logo img { height: 56px; width: auto; display: block; }
.tc-header .wp-block-navigation a { text-decoration: none; }
.tc-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-dark); }
.tc-btn-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--navy) !important;
	border: 1.5px solid var(--wp--preset--color--navy) !important;
}
.tc-btn-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy) !important;
	color: #fff !important;
}

/* Hero request card */
.tc-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(9, 58, 107, 0.08), 0 12px 32px rgba(9, 58, 107, 0.10);
}
.tc-pill {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #E8EEF8;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.tc-step { position: relative; padding-left: 42px; min-height: 28px; display: flex; align-items: center; }
.tc-step::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 999px;
	box-sizing: border-box;
}
.tc-step.is-done::before {
	background: var(--wp--preset--color--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.tc-step.is-current::before { background: var(--wp--preset--color--accent); }
.tc-step.is-current::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	background: #fff;
	transform: rotate(-12deg);
}
.tc-step.is-next::before { border: 2px solid var(--wp--preset--color--sky); }
.tc-step.is-next { color: var(--wp--preset--color--slate); }

/* Cards (Who we help) */
.tc-tile {
	border: 1px solid #DCE4F1;
	border-radius: 14px;
	background: #fff;
	height: 100%;
	box-sizing: border-box;
}

/* How it works numbers */
.tc-num {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px !important;
	font-weight: 800;
	margin: 0;
}

/* Footer */
.tc-footer a { color: var(--wp--preset--color--cream); text-decoration: none; }
.tc-footer a:hover { color: #fff; text-decoration: underline; }
.tc-footer .tc-logo img { height: 64px; width: auto; display: block; }
.tc-footer-bottom { border-top: 1px solid rgba(245, 230, 220, 0.25); }

/* Focus visibility */
a:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

@media (max-width: 781px) {
	.tc-header .tc-logo img { height: 44px; }
}

/* Sections & spacing */
.tc-section { padding-top: clamp(48px, 7vw, 88px) !important; padding-bottom: clamp(48px, 7vw, 88px) !important; }
.tc-section.tc-section--tight-top { padding-top: 0 !important; }
.tc-header-inner { padding-top: 16px; padding-bottom: 16px; }
.tc-card { padding: 28px; }
.tc-tile { padding: 28px; }
.tc-eyebrow { font-size: 14px !important; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); }
.tc-muted { color: var(--wp--preset--color--slate); }
.tc-on-navy, .tc-on-navy h2, .tc-on-navy h3 { color: #fff; }
.tc-on-navy p { color: var(--wp--preset--color--cream); }
.tc-num.is-cream { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--navy) !important; }
.tc-num.is-accent { background: var(--wp--preset--color--accent); color: #fff !important; }

/* v0.2.0 – hero stacks earlier so the card never gets squeezed */
@media (max-width: 1080px) {
	.tc-hero-cols { flex-wrap: wrap !important; }
	.tc-hero-cols > .wp-block-column { flex-basis: 100% !important; }
	.tc-hero-cols > .wp-block-column:last-child { max-width: 520px; }
}
.tc-hero-cols h1 { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* Inner pages */
.tc-page-content > * + h2 { margin-top: 48px; }
.tc-page-content .wp-block-details {
	border-bottom: 1px solid #DCE4F1;
	padding: 18px 0;
}
.tc-page-content .wp-block-details summary {
	font-weight: 700;
	font-size: 18px;
	cursor: pointer;
}
.tc-page-content .wp-block-details[open] summary { margin-bottom: 10px; }
.tc-note {
	background: var(--wp--preset--color--cream);
	border-radius: 12px;
	padding: 20px 24px;
}
