/*
Theme Name: Cairnex
Theme URI: https://cairnex.com
Author: Cairnex
Description: Block theme for Cairnex — websites, marketing and business software. Pakistan (PKR) and Global (USD) tracks, built to pair with FluentForms, FluentBooking, FluentCRM, FluentSupport and FluentBoards.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
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: cairnex
*/

/* ---------- Base ---------- */
.wp-site-blocks > * { margin-block: 0; }
.cx-main > * { margin-block-start: 0; }
:where(a, button, summary):focus-visible { outline: 3px solid #E3A21A; outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

.cx-section { padding: 88px 24px; }
.cx-section--stone { background: #F7F5F0; }
.cx-section--tight-top { padding-top: 0; }
.cx-lead { font-size: 20px; color: #3F4442; max-width: 640px; }
.cx-section__intro { margin-bottom: 40px; }
.cx-section__intro > * { max-width: 720px; }
.cx-section > h2 { margin-bottom: 32px; }
.cx-section__intro p { font-size: 19px; color: #3F4442; }

/* Outline buttons follow the brand, not the core default. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: #1A1D1C; border: 2px solid #1A1D1C; padding: 13px 28px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #1A1D1C; color: #FFFFFF; }
.wp-block-button.cx-btn-light.is-style-outline > .wp-block-button__link { color: #FFFFFF; border-color: #FFFFFF; }
.wp-block-button.cx-btn-light.is-style-outline > .wp-block-button__link:hover { background: #FFFFFF; color: #1A1D1C; }
.wp-block-button.cx-btn-amber > .wp-block-button__link { background: #E3A21A; color: #1A1D1C; }
.wp-block-button.cx-btn-amber > .wp-block-button__link:hover { background: #FFFFFF; color: #1A1D1C; }

/* ---------- Top bar ---------- */
.cx-topbar { background: #1A1D1C; color: #ECE9E2; font-size: 14px; padding: 10px 24px; }
.cx-topbar p { margin: 0; }
.cx-topbar p a + a { margin-left: 20px; }
.cx-topbar .cx-market a + a { margin-left: 0; }
.cx-topbar a { color: #ECE9E2; font-weight: 700; }
.cx-market { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cx-market__label { color: #B9B4AA; margin-right: 4px; }
.cx-market a { padding: 6px 14px; border-radius: 999px; border: 1px solid #5A5F5C; text-decoration: none; }
.cx-market a.cx-market__pk,
.page-template-global-home .cx-market a.cx-market__global { background: #E3A21A; border-color: #E3A21A; color: #1A1D1C; }
.page-template-global-home .cx-market a.cx-market__pk { background: transparent; border-color: #5A5F5C; color: #ECE9E2; }

/* ---------- Header ---------- */
.cx-header { background: #F7F5F0; border-bottom: 1px solid #DCD7CD; padding: 16px 24px; }
.cx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #1A1D1C; }
.cx-logo:hover { color: #1A1D1C; }
.cx-logo span { font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.cx-nav { font-weight: 700; font-size: 16px; }
.cx-nav a { color: #1A1D1C; text-decoration: none; }
.cx-nav a:hover { color: #2E5E4E; }
.cx-header .wp-block-button__link { padding: 12px 22px; font-size: 16px; }

/* ---------- Hero ---------- */
.cx-hero { padding: 88px 24px 72px; }
.cx-badge { display: inline-block; width: fit-content; padding: 8px 16px; border-radius: 999px; background: #E3A21A; color: #1A1D1C; font-size: 15px; font-weight: 800; line-height: 1.3; }
.cx-hero h1 { margin-top: 20px; }
.cx-stack { list-style: none; margin-inline: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cx-stack li { box-sizing: border-box; border-radius: 999px; font-weight: 800; text-align: center; background: #2E5E4E; color: #FFFFFF; padding: 18px 16px; }
.cx-stack li:nth-child(1) { width: 52%; background: #E3A21A; color: #1A1D1C; padding-block: 15px; }
.cx-stack li:nth-child(2) { width: 68%; }
.cx-stack li:nth-child(3) { width: 84%; padding-block: 20px; }
.cx-stack li:nth-child(4) { width: 100%; background: #1A1D1C; color: #ECE9E2; padding-block: 23px; }

/* ---------- Cards ---------- */
.cx-card { background: #FFFFFF; border-radius: 24px; padding: 32px; }
.cx-card h3 { margin: 0 0 10px; }
.cx-card p { margin: 0; color: #3F4442; }
.cx-card .cx-price { margin-top: 14px; font-weight: 800; color: #2E5E4E; }
.cx-card--dark { background: #1A1D1C; }
.cx-card--dark h3 { color: #ECE9E2; }
.cx-card--dark p { color: #C9C4BA; }
.cx-card--dark .cx-price { color: #E3A21A; }
.cx-values { gap: 20px; }

/* ---------- Industries ---------- */
.cx-pills { list-style: none; margin-inline: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cx-pills a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: #FFFFFF; color: #1A1D1C; font-weight: 700; text-decoration: none; }
.cx-pills a:hover { background: #1A1D1C; color: #FFFFFF; }

/* ---------- Work ---------- */
.cx-work-feature { background: #2E5E4E; color: #FFFFFF; border-radius: 24px; padding: 36px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.cx-work-feature h3 { color: #FFFFFF; font-size: 34px; margin: 14px 0 8px; }
.cx-work-feature h3 a { color: #FFFFFF; text-decoration: none; }
.cx-work-feature h3 a:hover { text-decoration: underline; }
.cx-work-feature p { margin: 0; color: #DCE7E2; }
.cx-work-feature .cx-badge { color: #1A1D1C; }
.cx-label { font-weight: 800; color: #5A5F5C; margin: 0 0 12px; }
.cx-concepts { list-style: none; margin-inline: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cx-concepts li { background: #FFFFFF; border-radius: 20px; padding: 20px 26px; color: #5A5F5C; }
.cx-concepts a { font-weight: 800; color: #1A1D1C; text-decoration: none; }
.cx-concepts a:hover { color: #2E5E4E; text-decoration: underline; }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.cx-steps { list-style: none; margin-inline: 0; padding: 0; counter-reset: cx-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.cx-steps li { counter-increment: cx-step; color: #3F4442; }
.cx-steps li::before { content: counter(cx-step); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 999px; background: #E3A21A; color: #1A1D1C; font-weight: 800; }
.cx-steps strong { display: block; font-size: 21px; color: #1A1D1C; margin-bottom: 6px; }

/* ---------- Testimonial ---------- */
.cx-testimonial { background: #FFFFFF; border-radius: 24px; padding: 40px; border: 0; margin: 0; }
.cx-testimonial p { font-family: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; font-size: 30px; font-weight: 600; line-height: 1.3; }
.cx-testimonial cite { font-style: normal; font-weight: 700; }

/* ---------- Closing band ---------- */
.cx-cta { background: #2E5E4E; color: #FFFFFF; padding: 80px 24px; }
.cx-cta h2 { color: #FFFFFF; }
.cx-cta p { color: #DCE7E2; font-size: 19px; }

/* ---------- Footer ---------- */
.cx-footer { background: #1A1D1C; color: #C9C4BA; font-size: 15px; padding: 56px 24px 32px; }
.cx-footer .cx-logo { color: #ECE9E2; }
.cx-footer .cx-logo span { font-size: 24px; }
.cx-footer h2.cx-footer__head { font-family: 'Nunito Sans', 'Trebuchet MS', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0; color: #ECE9E2; margin: 0 0 10px; }
.cx-footer__links { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cx-footer a { color: #C9C4BA; }
.cx-footer a:hover { color: #FFFFFF; }
.cx-footer__legal { border-top: 1px solid #33383A; padding-top: 20px; margin-top: 40px; }

/* ---------- Blog and inner pages ---------- */
.cx-page { padding: 72px 24px 88px; }
.cx-post-list .wp-block-post { background: #FFFFFF; border-radius: 24px; padding: 28px 32px; margin-bottom: 20px; }
.cx-post-list .wp-block-post-title a { text-decoration: none; color: #1A1D1C; }
.cx-post-list .wp-block-post-title a:hover { color: #2E5E4E; }
.cx-meta { color: #5A5F5C; font-size: 15px; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.cx-section, .cx-hero { padding-top: 56px; padding-bottom: 56px; }
	.cx-hero__visual { display: none; }
	.cx-market__label { display: none; }
	.cx-testimonial p { font-size: 24px; }
}
