/*
Theme Name: Curat
Theme URI: https://curatconsultants.com
Author: Curat Ltd
Author URI: https://curatconsultants.com
Description: A clean, warm and responsive block theme for Curat Consulting. Built for full site editing, with the Curat brand colours, self-hosted Lexend and Source Sans 3 fonts, and ready-made patterns for the hero, services, how we work, call to action and contact sections.
Version: 1.1.0
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: curat
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, one-column, wide-blocks, threaded-comments, translation-ready, business
*/

/* ---------- General ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

.curat-eyebrow {
	font-family: var(--wp--preset--font-family--lexend);
	font-size: 0.8rem !important;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sage-deep);
	margin-bottom: 0.5rem !important;
}
.curat-lede { font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--slate); }
.curat-muted { color: var(--wp--preset--color--slate); }
.curat-accent { color: var(--wp--preset--color--sage); }

/* Buttons: hover */
.wp-element-button, .wp-block-button__link { transition: background-color .15s, color .15s, transform .15s, box-shadow .15s; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link { box-shadow: 0 18px 40px -18px rgba(20, 59, 96, .35); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background-color: var(--wp--preset--color--navy-deep); transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; color: var(--wp--preset--color--navy); background: transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; border-color: var(--wp--preset--color--navy); }
.curat-light-button .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--navy) !important; }

/* ---------- Header ---------- */
.curat-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .curat-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }
.curat-header {
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.curat-header .wp-block-site-logo img { height: 46px; width: auto; }
.curat-header .wp-block-site-title { margin: 0; }
.curat-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--navy); }
.curat-header .wp-block-navigation a:hover { color: var(--wp--preset--color--navy); }
.curat-header .wp-block-navigation .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--wp--preset--color--sage); }
.curat-header .curat-header-button .wp-block-button__link { padding: .65em 1.2em; font-size: .92rem; }
@media (max-width: 781px) { .curat-header .curat-header-button { display: none; } }

/* ---------- Hero ---------- */
.curat-hero { position: relative; overflow: hidden; }
.curat-hero::before, .curat-hero::after {
	content: ""; position: absolute; border-radius: 50%; pointer-events: none;
	border: 44px solid var(--wp--preset--color--sage-tint); border-right-color: transparent; transform: rotate(-45deg);
}
.curat-hero::before { width: 620px; height: 620px; right: -170px; top: -120px; }
.curat-hero::after { width: 380px; height: 380px; right: -50px; top: 0; border-width: 30px; border-color: #EDF1EE; border-right-color: transparent; }
.curat-hero > * { position: relative; z-index: 1; }
.curat-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
@media (max-width: 600px) { .curat-hero::after { display: none; } .curat-hero::before { width: 420px; height: 420px; right: -240px; top: -140px; border-width: 34px; } }

/* Small tick list under hero buttons */
.curat-assure { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--wp--preset--color--slate); font-size: .98rem; }
.curat-assure li, .curat-checklist li { display: flex; align-items: center; gap: 8px; }
.curat-assure li::before, .curat-checklist li::before {
	content: ""; flex: none; width: 18px; height: 18px; background: var(--wp--preset--color--sage);
	-webkit-mask: var(--curat-check) center / contain no-repeat; mask: var(--curat-check) center / contain no-repeat;
}
:root {
	--curat-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E");
}

/* Example plan card */
.curat-plan-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(20, 59, 96, .28); }
.curat-plan-card h2 { font-size: 1.15rem !important; margin: 0; }
.curat-plan-card .curat-tag { display: inline-block; font-family: var(--wp--preset--font-family--lexend); font-size: .75rem !important; background: var(--wp--preset--color--sage-tint); color: var(--wp--preset--color--navy); padding: 4px 10px; border-radius: 999px; margin: 0; }
.curat-plan-list { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: plan; }
.curat-plan-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--wp--preset--color--paper); font-family: var(--wp--preset--font-family--lexend); font-weight: 500; color: var(--wp--preset--color--navy); font-size: .95rem; }
.curat-plan-list li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--wp--preset--color--line); background: #fff; }
.curat-plan-list li:nth-child(-n+2)::before { border-color: var(--wp--preset--color--sage); background: var(--wp--preset--color--sage) 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 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.curat-plan-card .curat-plan-foot { border-top: 1px dashed var(--wp--preset--color--line); padding-top: 14px; font-size: .88rem !important; color: var(--wp--preset--color--slate); }

/* ---------- Ethos ---------- */
.curat-mark-panel { border-radius: 28px; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.curat-mark-panel .wp-block-image { margin: 0; }
.curat-mark-panel .wp-block-image img { width: 190px; height: auto; }
.curat-mark-panel .curat-latin { font-family: var(--wp--preset--font-family--lexend); font-size: .85rem !important; color: var(--wp--preset--color--sage-deep); letter-spacing: .08em; }

/* ---------- Cards (services) ---------- */
.curat-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; transition: transform .2s, box-shadow .2s; height: 100%; display: flex; flex-direction: column; }
.curat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(20, 59, 96, .28); }
.curat-card > .wp-block-heading { font-size: 1.2rem !important; }
.curat-card > p { color: var(--wp--preset--color--slate); font-size: 1rem; }
.curat-card > p:last-child { margin-top: auto; padding-top: 12px; }
.curat-card a { font-family: var(--wp--preset--font-family--lexend); font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--wp--preset--color--navy); }
.curat-card a:hover { color: var(--wp--preset--color--sage-deep); }
.curat-card::before, .curat-pillar::before {
	content: ""; display: block; width: 54px; height: 54px; border-radius: 14px; margin-bottom: 8px;
	background-color: var(--wp--preset--color--sage-tint);
	background-image: var(--curat-icon); background-repeat: no-repeat; background-position: center; background-size: 28px;
}
.curat-icon-growth { --curat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143B60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E"); }
.curat-icon-time { --curat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143B60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.curat-icon-screen { --curat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143B60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 9h18M8 21h8M12 18v3'/%3E%3C/svg%3E"); }
.curat-icon-home { --curat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143B60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V10l7-5 7 5v11'/%3E%3Cpath d='M10 21v-6h4v6'/%3E%3C/svg%3E"); }
.curat-icon-person { --curat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239FB5A9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
.curat-icon-shield { --curat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239FB5A9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.curat-icon-spark { --curat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239FB5A9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l2.4 5.6L20 10l-5.6 2.4L12 18l-2.4-5.6L4 10l5.6-2.4z'/%3E%3C/svg%3E"); }

/* ---------- Approach band ---------- */
.curat-band { position: relative; overflow: hidden; }
.curat-band::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); border-right-color: transparent; transform: rotate(-45deg); right: -180px; top: -220px; pointer-events: none; }
.curat-band > * { position: relative; z-index: 1; }
.curat-band .curat-eyebrow { color: var(--wp--preset--color--sage-light); }
.curat-band p { color: #D6DEE6; }
.curat-pillar { display: grid !important; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.curat-pillar::before { grid-row: 1 / span 2; width: 46px; height: 46px; background-color: rgba(159, 181, 169, .18); background-size: 24px; margin: 0; }
.curat-pillar > * { grid-column: 2; margin: 0 !important; }
.curat-pillar h3 { color: #fff !important; font-size: 1.05rem !important; font-weight: 500 !important; }
.curat-pillar p { color: #C6D1DB !important; font-size: .98rem; }

/* ---------- Who we work with ---------- */
.curat-checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.curat-checklist li { align-items: flex-start; padding: 18px 20px; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; font-size: 1.05rem; background: #fff; }
.curat-checklist li::before { width: 22px; height: 22px; margin-top: 3px; }

/* ---------- Steps ---------- */
.curat-steps { counter-reset: curat-step; }
.curat-step { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; height: 100%; counter-increment: curat-step; }
.curat-step::before { content: counter(curat-step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--navy); color: #fff; font-family: var(--wp--preset--font-family--lexend); font-weight: 600; margin-bottom: 8px; }
.curat-step h3 { font-size: 1.25rem !important; }
.curat-step p { color: var(--wp--preset--color--slate); font-size: 1rem; }

/* ---------- CTA ---------- */
.curat-cta-box { background: linear-gradient(135deg, var(--wp--preset--color--sage-tint), #F2F5F3); border-radius: 28px; }
.curat-cta-box p { color: var(--wp--preset--color--slate); }

/* ---------- Contact ---------- */
.curat-contact-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; }
.curat-form-placeholder { border: 2px dashed var(--wp--preset--color--line); border-radius: 14px; color: var(--wp--preset--color--slate); }

/* ---------- Footer ---------- */
.curat-footer a { text-decoration: none; }
.curat-footer a:hover { color: #fff; }
.curat-footer .wp-block-image img { width: 96px; height: auto; }
.curat-footer h4, .curat-footer h2, .curat-footer h3 { color: #fff !important; }
.curat-footer .wp-block-navigation { gap: 8px; }
.curat-legal { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #9FB0BF; }

/* ---------- Responsive card/step grids (columns stack on mobile by default) ---------- */
@media (max-width: 1020px) and (min-width: 782px) {
	.curat-grid-4 { flex-wrap: wrap !important; }
	.curat-grid-4 > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0 !important; }
}
