/*
Theme Name: The Real Broker
Theme URI: https://example.com
Author: The Real Broker
Description: A clean, conversion-focused theme for The Real Broker real estate site. Every homepage section is made of ordinary editable blocks, with 11 ready-made section patterns (hero, about, services, counters, approach, testimonials, calls to action, recent posts, team and contact), a built-in contact form, and Customizer settings for brand colours, top bar and footer.
Version: 1.0.2
Requires at least: 6.3
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: the-real-broker
Tags: business, one-column, custom-logo, custom-menu, editor-style, featured-images, block-patterns, wide-blocks
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--trb-primary: #011D45;
	--trb-accent: #2457E6;
	--trb-accent-dark: #1a43b8;
	--trb-ink: #1d2733;
	--trb-body: #56606b;
	--trb-line: #e4e7ec;
	--trb-soft: #f3f6fb;
	--trb-white: #fff;
	--trb-radius: 14px;
	--trb-shadow: 0 18px 40px -22px rgba(1, 29, 69, .35);
	--trb-serif: "Saira", "Inter", system-ui, sans-serif;
	--trb-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--trb-wrap: 1180px;
	--trb-gap: clamp(64px, 9vw, 112px);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--trb-sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--trb-body);
	background: var(--trb-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--trb-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--trb-primary); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--trb-serif);
	color: var(--trb-ink);
	line-height: 1.15;
	margin: 0 0 .5em;
	font-weight: 600;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: #fff; padding: 10px 16px; border-radius: 6px;
}
:focus-visible { outline: 2px solid var(--trb-accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--trb-wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 860px; }
.container.narrow { max-width: 860px; }

/* ==========================================================================
   Buttons (theme .btn and block-editor buttons share one look)
   ========================================================================== */
.btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 28px;
	border-radius: 999px;
	border: 2px solid var(--trb-accent);
	background: var(--trb-accent);
	color: #fff;
	font-family: var(--trb-sans);
	font-weight: 600; font-size: 15px; letter-spacing: .02em; line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.wp-block-button__link::after {
	content: ""; width: 16px; height: 16px; flex: none;
	background: currentColor;
	-webkit-mask: 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%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: 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%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s;
}
.btn:hover,
.wp-block-button__link:hover { background: var(--trb-accent-dark); border-color: var(--trb-accent-dark); color: #fff; transform: translateY(-2px); }
.wp-block-button__link:hover::after { transform: translateX(3px); }
.btn .icon { width: 16px; height: 16px; }

.wp-block-button.is-style-outline > .wp-block-button__link,
.btn-outline { background: transparent; color: var(--trb-primary); border-color: var(--trb-primary); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.btn-outline:hover { background: var(--trb-primary); color: #fff; border-color: var(--trb-primary); }

.wp-block-button.btn-ghost > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.wp-block-button.btn-ghost > .wp-block-button__link:hover { background: #fff; color: var(--trb-primary); border-color: #fff; }

.wp-block-button.btn-light > .wp-block-button__link { background: #fff; border-color: #fff; color: var(--trb-primary); }
.wp-block-button.btn-light > .wp-block-button__link:hover { background: var(--trb-primary); border-color: var(--trb-primary); color: #fff; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-buttons .wp-block-button { margin: 0; }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.top-bar { background: var(--trb-primary); color: rgba(255, 255, 255, .78); font-size: 14px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.top-contact { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.top-contact a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.top-contact a:hover { color: #fff; }
.top-contact .icon { width: 15px; height: 15px; color: #8fb1ff; }
.top-note { margin: 0; letter-spacing: .02em; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid var(--trb-line);
	transition: box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(1, 29, 69, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }

.text-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
	width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
	background: var(--trb-primary); color: var(--trb-accent);
}
.logo-mark .icon { width: 24px; height: 24px; }
.logo-text { font-family: var(--trb-serif); font-weight: 700; font-size: 1.35rem; color: var(--trb-primary); line-height: 1.1; }
.text-logo.light .logo-text { color: #fff; }
.text-logo.light .logo-mark { background: rgba(255, 255, 255, .08); }
.custom-logo { max-height: 60px; width: auto; }
.brand-logo { display: inline-block; line-height: 0; }
.brand-logo img { height: 46px; width: auto; }
.brand-logo.light { margin-bottom: 22px; }
.brand-logo.light img { height: 40px; }

.main-navigation { display: flex; align-items: center; gap: 30px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation .menu { display: flex; gap: 6px 28px; flex-wrap: wrap; }
.main-navigation .menu > li { position: relative; }
.main-navigation a { color: var(--trb-ink); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 6px 0; display: block; position: relative; }
.main-navigation .menu > li > a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
	background: var(--trb-accent); transition: right .25s;
}
.main-navigation .menu > li > a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after { right: 0; }
.main-navigation .sub-menu {
	position: absolute; top: 100%; left: -18px; min-width: 220px; padding: 10px 0;
	background: #fff; border-radius: 10px; box-shadow: var(--trb-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a { padding: 8px 20px; font-size: 15px; }
.main-navigation a.header-btn { padding: 12px 22px; color: #fff; }
.main-navigation a.header-btn:hover { color: #fff; }

.menu-toggle {
	display: none; background: none; border: 0; padding: 8px; color: var(--trb-primary); cursor: pointer;
}
.menu-toggle .icon { width: 28px; height: 28px; }
.menu-toggle .icon-close { display: none; }

/* ==========================================================================
   Content wrapper: Real Broker sections run edge to edge; other blocks get a column
   ========================================================================== */
.trb-blocks > :not(.trb-section):not(.alignfull):not(:has(.trb-section)) {
	max-width: 780px; margin-inline: auto; padding-inline: 24px;
}
.trb-blocks > .alignwide:not(:has(.trb-section)) { max-width: var(--trb-wrap); }
.trb-blocks > :not(.trb-section):not(:has(.trb-section)):first-child { margin-top: var(--trb-gap); }
.trb-blocks > :not(.trb-section):not(:has(.trb-section)):last-child { margin-bottom: var(--trb-gap); }

/* If the sections end up inside a wrapper block (e.g. a Group around the whole page),
   let the wrapper run full width with no spacing so the sections still go edge to edge. */
.trb-blocks > :not(.trb-section):has(.trb-section),
.trb-blocks > :not(.trb-section):has(.trb-section) > .wp-block-group__inner-container {
	max-width: none !important; width: 100%; margin: 0 !important; padding: 0 !important;
	background: none; border: 0;
}
.trb-blocks .trb-section { width: 100%; max-width: none; }
.trb-blocks > .trb-section { max-width: none; padding-inline: 0; }
.single-post-article .trb-blocks > :not(.trb-section):first-child { margin-top: 48px; }

/* Safety net: if WordPress wraps group contents in an extra inner-container div,
   make it layout-transparent so grids and columns still work. */
.wp-block-group__inner-container { display: contents; }

/* Neutralise default block spacing inside Real Broker sections; the layout below sets its own. */
.trb-section { margin: 0; }
:where(.trb-section .wp-block-group) { margin: 0; }
.trb-section .is-layout-flow > *,
.trb-section :where(.wp-block-group) > * { margin-block-start: 0; }
.trb-section .wp-block-image { margin: 0; }
.trb-section .wp-block-image img { border-radius: inherit; }

.trb-section { padding-block: var(--trb-gap); position: relative; }
.trb-section.alt-bg { background: var(--trb-soft); }

.section-heading { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-heading.align-left { margin-inline: 0; text-align: left; margin-bottom: 26px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--trb-sans); font-size: 13px !important; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase; color: var(--trb-accent-dark);
	margin: 0 0 14px !important;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--trb-accent); }
.section-heading:not(.align-left) .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--trb-accent); }
.eyebrow.light { color: #8fb1ff; }
.eyebrow.light::before { background: #8fb1ff; }
.section-title { margin: 0; }
.section-cta { margin-top: 52px; display: flex; justify-content: center; }
.section-cta .wp-block-buttons { justify-content: center; }
.lead { font-size: 1.08rem; }

/* Icon badges (small image blocks; click and Replace to change the icon) */
.icon-badge {
	width: 64px !important; height: 64px; border-radius: 16px; display: grid !important; place-items: center;
	background: rgba(36, 87, 230, .12); margin: 0 0 22px !important; flex: none;
}
.icon-badge img { width: 30px !important; height: 30px !important; }

/* Media placeholders */
.rounded-img img, .hero-img img { border-radius: var(--trb-radius); width: 100%; }
.media-placeholder {
	display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--trb-radius);
	background: linear-gradient(135deg, #0d3070, var(--trb-primary)); color: var(--trb-accent);
}
.media-placeholder .icon { width: 64px; height: 64px; }
.media-placeholder.small { aspect-ratio: 3 / 2; border-radius: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.trb-section.hero {
	background:
		radial-gradient(1000px 500px at 85% -10%, rgba(36, 87, 230, .18), transparent 60%),
		linear-gradient(160deg, #0a2a5c 0%, var(--trb-primary) 55%, #00142f 100%);
	color: rgba(255, 255, 255, .82);
	padding-block: clamp(70px, 9vw, 120px);
	overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero-title { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4rem); margin: 0 0 22px; letter-spacing: -.01em; }
.hero-text { font-size: 1.15rem; max-width: 540px; margin: 0 0 34px; }
.hero-media { position: relative; }
.hero-img img { aspect-ratio: 9 / 10; object-fit: cover; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.hero-badge {
	position: absolute; left: -28px; bottom: 36px;
	background: #fff; border-radius: var(--trb-radius); padding: 18px 24px;
	box-shadow: var(--trb-shadow); display: flex !important; align-items: center; gap: 14px; max-width: 250px;
}
.hero-badge p { margin: 0 !important; }
.hero-badge .badge-num { font-family: var(--trb-serif); font-size: 2.6rem; font-weight: 700; color: var(--trb-accent); line-height: 1; }
.hero-badge .badge-text { color: var(--trb-ink); font-weight: 600; line-height: 1.3; font-size: 15px; }

/* ==========================================================================
   Split layouts (About, Approach)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split.reverse .split-copy { order: 1; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media::before {
	content: ""; position: absolute; inset: 28px -18px -18px 28px; border: 2px solid var(--trb-accent);
	border-radius: var(--trb-radius); z-index: 0; opacity: .55;
}
.split.reverse .split-media::before { inset: 28px 28px -18px -18px; }
.split-media .wp-block-image, .split-media > * { position: relative; z-index: 1; }
.split-copy .wp-block-buttons { margin-top: 34px; }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li {
	position: relative; padding-left: 38px; color: var(--trb-ink); font-weight: 600;
}
.check-list li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--trb-accent) 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='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
.feature .icon-badge { width: 54px !important; height: 54px; margin-bottom: 16px !important; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15.5px; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid { display: grid; gap: 28px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.service-card {
	background: #fff; border-radius: var(--trb-radius); padding: 36px 32px;
	border: 1px solid var(--trb-line); transition: transform .3s, box-shadow .3s, border-color .3s;
	position: relative; overflow: hidden;
}
.service-card::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--trb-accent); transition: width .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--trb-shadow); border-color: transparent; }
.service-card:hover::after { width: 100%; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 15.5px; }
.text-link { margin: 0 !important; font-weight: 600; font-size: 15px; }
.text-link a { text-decoration: none; color: var(--trb-primary); }
.text-link a:hover { color: var(--trb-accent-dark); }

/* ==========================================================================
   Counters
   ========================================================================== */
.trb-section.counters {
	background: linear-gradient(120deg, var(--trb-primary), #00142f);
	padding-block: clamp(56px, 7vw, 84px);
}
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.counter { position: relative; }
.counter + .counter::before {
	content: ""; position: absolute; left: -14px; top: 15%; bottom: 15%; width: 1px; background: rgba(255, 255, 255, .14);
}
.counter-num {
	font-family: var(--trb-serif); font-weight: 700; color: #8fb1ff;
	font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 10px !important;
}
.counter-label { color: rgba(255, 255, 255, .8); margin: 0 !important; font-weight: 500; letter-spacing: .02em; }

/* ==========================================================================
   Testimonials slider (each "slide" group is one card)
   ========================================================================== */
.slider { position: relative; }
.slider.is-ready { overflow: hidden; }
.slider-track { display: flex; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.slider:not(.is-ready) { display: grid; gap: 24px; }
.testimonial {
	background: #fff; border-radius: var(--trb-radius); padding: clamp(32px, 5vw, 56px);
	text-align: center; box-shadow: var(--trb-shadow);
}
.slider.is-ready .testimonial { flex: 0 0 100%; margin: 0 !important; box-shadow: none; border: 1px solid var(--trb-line); }
.quote-mark {
	width: 58px !important; height: 58px; margin: 0 auto 22px !important; border-radius: 50%;
	display: grid !important; place-items: center; background: rgba(36, 87, 230, .12);
}
.quote-mark img { width: 26px !important; height: 26px !important; }
.testimonial-quote { font-family: var(--trb-sans); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.6; color: var(--trb-ink); margin-bottom: 26px !important; }
.testimonial-name { font-weight: 700; color: var(--trb-ink); margin: 0 !important; }
.testimonial-role { font-size: 14.5px; margin: 0 !important; color: var(--trb-accent-dark); }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.slider-nav button {
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--trb-line); background: #fff;
	color: var(--trb-primary); cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.slider-nav button:hover { background: var(--trb-primary); color: #fff; border-color: var(--trb-primary); }
.slider-nav .icon { width: 20px; height: 20px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; background: var(--trb-line); border: 0; transition: width .3s, background .3s; }
.slider-dots button[aria-current="true"] { width: 28px; background: var(--trb-accent); }

/* ==========================================================================
   Call-to-action bands
   ========================================================================== */
.trb-section.cta-band {
	background: linear-gradient(115deg, var(--trb-accent) 0%, #0f3aa8 100%);
	padding-block: clamp(56px, 7vw, 80px); overflow: hidden;
}
.trb-section.cta-band::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
	border: 50px solid rgba(255, 255, 255, .08); pointer-events: none;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 60px; position: relative; z-index: 1; }
.cta-copy { max-width: 680px; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0; }
.cta-band .wp-block-buttons { flex: none; }
.trb-section.cta-band.dark { background: linear-gradient(115deg, var(--trb-primary), #00142f); }
.trb-section.cta-band.dark::after { border-color: rgba(36, 87, 230, .12); }
.cta-band.dark p { color: rgba(255, 255, 255, .75); }

/* ==========================================================================
   Blog cards (Latest Posts block + theme archive cards)
   ========================================================================== */
.wp-block-latest-posts.trb-posts {
	display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; margin: 0;
}
.wp-block-latest-posts.trb-posts > li {
	width: auto !important; margin: 0 !important; list-style: none;
	background: #fff; border: 1px solid var(--trb-line); border-radius: var(--trb-radius);
	overflow: hidden; display: flex; flex-direction: column; padding: 0 0 28px; transition: transform .3s, box-shadow .3s;
}
.wp-block-latest-posts.trb-posts > li:hover { transform: translateY(-6px); box-shadow: var(--trb-shadow); }
.trb-posts .wp-block-latest-posts__featured-image { margin: 0 0 22px; }
.trb-posts .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.trb-posts > li:not(:has(.wp-block-latest-posts__featured-image))::before {
	content: ""; display: block; aspect-ratio: 3 / 2; margin-bottom: 22px; order: -2;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FA6FF' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E") center / 56px no-repeat,
		linear-gradient(135deg, #0d3070, var(--trb-primary));
}
.wp-block-latest-posts__post-title {
	display: block; padding-inline: 28px; font-family: var(--trb-serif); font-weight: 700; font-size: 1.25rem;
	line-height: 1.35; color: var(--trb-ink); text-decoration: none; margin-bottom: 8px;
}
.wp-block-latest-posts__post-title:hover { color: var(--trb-accent-dark); }
.wp-block-latest-posts__post-date { order: -1; padding-inline: 28px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--trb-accent-dark) !important; font-weight: 600; margin-bottom: 8px; }
.trb-posts .wp-block-latest-posts__featured-image + .wp-block-latest-posts__post-title { margin-top: 0; }
.wp-block-latest-posts__post-excerpt { padding-inline: 28px; font-size: 15.5px; margin: 0; }
.trb-posts > li { position: relative; }
.trb-posts > li > .wp-block-latest-posts__featured-image { order: -2; }

.post-card {
	background: #fff; border: 1px solid var(--trb-line); border-radius: var(--trb-radius); overflow: hidden;
	display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--trb-shadow); }
.post-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { padding: 24px 28px 30px; }
.post-meta { display: flex; gap: 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 10px; }
.post-meta .post-cat { text-decoration: none; color: var(--trb-accent-dark); }
.post-meta time { color: #8a929b; }
.post-card-title { font-size: 1.25rem; line-height: 1.35; }
.post-card-title a { color: var(--trb-ink); text-decoration: none; }
.post-card-title a:hover { color: var(--trb-accent-dark); }
.post-card-body p { font-size: 15.5px; margin: 0; }
.pagination-wrap { margin-top: 56px; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 8px; }
.page-numbers {
	min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 99px;
	border: 1px solid var(--trb-line); text-decoration: none; color: var(--trb-ink); font-weight: 600;
}
.page-numbers.current, .page-numbers:hover { background: var(--trb-primary); color: #fff; border-color: var(--trb-primary); }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 280px)); gap: 30px; justify-content: center; }
.team-card { text-align: center; }
.team-photo { border-radius: var(--trb-radius); overflow: hidden; margin: 0 0 22px !important; position: relative; }
.team-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; transition: transform .5s; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card h3 { margin-bottom: 4px; }
.team-role { color: var(--trb-accent-dark); font-weight: 600; font-size: 15px; margin: 0 !important; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
	display: grid !important; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: center;
	background: var(--trb-soft); padding: 22px 24px; border-radius: var(--trb-radius);
}
.contact-card .icon-badge { grid-row: 1 / span 2; width: 56px !important; height: 56px; margin: 0 !important; background: #fff; }
.contact-card-label { margin: 0 !important; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--trb-accent-dark); align-self: end; }
.contact-card-value { margin: 0 !important; color: var(--trb-ink); font-weight: 600; align-self: start; }
.contact-card-value a { color: inherit; text-decoration: none; }
.contact-form-wrap {
	background: #fff; border: 1px solid var(--trb-line); border-radius: var(--trb-radius);
	padding: clamp(26px, 4vw, 44px); box-shadow: var(--trb-shadow);
}
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--trb-ink); }
.contact-form input, .contact-form select, .contact-form textarea,
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea, .search-form input[type="search"] {
	width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--trb-ink);
	padding: 13px 16px; border: 1px solid #d5d9df; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
	outline: none; border-color: var(--trb-accent); box-shadow: 0 0 0 4px rgba(36, 87, 230, .15);
}
.contact-form .btn { justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-notice.success { background: #e9f6ee; color: #1d6b3d; }
.form-notice.error { background: #fdecec; color: #9b2c2c; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-banner {
	background:
		radial-gradient(700px 300px at 90% 0, rgba(36, 87, 230, .2), transparent 60%),
		linear-gradient(160deg, #0a2a5c, var(--trb-primary));
	padding-block: clamp(56px, 7vw, 92px); text-align: center;
}
.page-banner .page-title { color: #fff; margin: 0; }
.banner-meta { margin: 14px 0 0; color: rgba(255, 255, 255, .75); font-size: 15px; }
.banner-meta a { color: #8fb1ff; text-decoration: none; }
.has-trb-sections .page-banner + .site-main .trb-blocks > .trb-section:first-child { padding-top: clamp(56px, 7vw, 88px); }

.trb-blocks > h2, .trb-blocks > h3 { margin-top: 1.6em; }
.entry-content ul:not(.check-list):not(.wp-block-latest-posts), .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { border-left: 3px solid var(--trb-accent); margin: 1.5em 0; padding: .2em 0 .2em 1.3em; font-size: 1.2rem; color: var(--trb-ink); }
.single-thumb { margin-top: 48px; }
.single-thumb img { border-radius: var(--trb-radius); }
.post-footer { padding-bottom: var(--trb-gap); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--trb-line); padding-top: 26px; margin-top: 30px; font-weight: 600; }
.post-nav a { text-decoration: none; color: var(--trb-primary); }
.comments-area { margin-top: 50px; }
.comment-list { padding-left: 0; list-style: none; }
.empty-notice { padding-block: var(--trb-gap); text-align: center; }
.search-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto 30px; }
.search-submit, .comment-form .submit {
	padding: 13px 24px; border: 0; border-radius: 999px; background: var(--trb-accent); color: #fff; font-weight: 600; cursor: pointer;
}
.site-main.section { padding-block: var(--trb-gap); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #00142f; color: rgba(255, 255, 255, .68); font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 44px; padding-block: 80px 60px; }
.footer-about .text-logo { margin-bottom: 20px; }
.footer-title { color: #fff; font-size: 1.15rem; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-menu, .footer-col .menu { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #8fb1ff; }
.footer-posts { display: grid; gap: 18px; }
.footer-posts a { color: #fff; font-weight: 500; line-height: 1.45; display: block; }
.footer-post-cat { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #8fb1ff; font-weight: 700; margin-bottom: 4px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: #8fb1ff; flex: none; margin-top: 4px; }
.social-links { display: flex; gap: 10px; margin-top: 22px !important; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); }
.social-links a:hover { background: var(--trb-accent); border-color: var(--trb-accent); color: #fff; }
.social-links .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; padding-block: 24px; }
.footer-bottom p { margin: 0; }
.legal { max-width: 620px; }

/* ==========================================================================
   Scroll reveal (added by JS only, so content never hides without it)
   ========================================================================== */
.js-reveal .reveal-item { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal-item.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js-reveal .reveal-item { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.main-navigation .menu { gap: 6px 20px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.menu-toggle { display: block; }
	.main-navigation {
		position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 18px;
		background: #fff; padding: 18px 24px 28px; border-bottom: 1px solid var(--trb-line); box-shadow: var(--trb-shadow);
		display: none;
	}
	.menu-open .main-navigation { display: flex; }
	.menu-open .menu-toggle .icon-open { display: none; }
	.menu-open .menu-toggle .icon-close { display: block; }
	.main-navigation .menu { flex-direction: column; gap: 0; }
	.main-navigation .menu > li > a { padding: 12px 0; border-bottom: 1px solid var(--trb-line); }
	.main-navigation .menu > li > a::after { display: none; }
	.main-navigation .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.header-btn { justify-content: center; }

	.hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
	.split.reverse .split-media { order: 0; }
	.hero-media { max-width: 520px; }
	.hero-badge { left: 16px; }
	.card-grid.three, .wp-block-latest-posts.trb-posts { grid-template-columns: 1fr 1fr; }
	.counter-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
	.counter:nth-child(3)::before { display: none; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
	body { font-size: 16px; }
	.top-note { display: none; }
	.top-bar-inner { justify-content: center; }
	.card-grid.three, .wp-block-latest-posts.trb-posts, .feature-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
	.split-media::before { inset: 16px -10px -10px 16px; }
	.section-heading { margin-bottom: 40px; }
	.hero-badge { position: relative; left: 0; bottom: 0; margin-top: -40px !important; margin-left: 16px !important; }
}
