/*
Theme Name:   SimpleBiz (Artistics Child)
Theme URI:    https://simplebiz.lk/
Description:  SimpleBiz brand child theme for Artistics: light brand design, business details in the Customizer, WhatsApp button, structured data, case-study projects and performance tweaks.
Author:       SimpleBiz
Author URI:   https://simplebiz.lk/
Template:     artistics
Version:      1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain:  simplebiz
License:      GPL-2.0-or-later
*/

/* ==========================================================================
   1. Tokens
   Brand tokens (--sb-*) are fixed. The --e-global-* values replace the
   parent's dark defaults; Elementor > Site Settings > Global Colors /
   Global Fonts still override them when set there.
   ========================================================================== */

:root {
	--sb-red: #FD282A;          /* logo red, large brand marks only */
	--sb-action: #D91E28;       /* buttons, links (5:1 with white) */
	--sb-action-dark: #B9141E;
	--sb-tint: #FDECEC;
	--sb-ink: #14161C;          /* headings */
	--sb-slate: #4A5161;        /* body text */
	--sb-muted: #6B7282;
	--sb-ocean: #0F3A4A;        /* dark sections, footer */
	--sb-ocean-text: #D3E3EA;
	--sb-paper: #F5F6F8;
	--sb-line: #E3E5EA;
	--sb-white: #FFFFFF;
	--sb-wa: #25D366;
	--sb-wa-text: #0B2E17;

	--sb-font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--sb-font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
	--sb-font-sinhala: "Noto Sans Sinhala", "Iskoola Pota", sans-serif;

	--sb-radius: 12px;
	--sb-radius-sm: 8px;
	--sb-section-y: clamp(64px, 9vw, 112px);
	--sb-gap: clamp(20px, 3vw, 32px);
	--sb-shadow-float: 0 8px 24px rgba(20, 22, 28, 0.18);
	--sb-ease: 150ms ease;
}

body {
	--e-global-color-primary: var(--sb-ink);
	--e-global-color-secondary: var(--sb-paper);
	--e-global-color-text: var(--sb-slate);
	--e-global-color-accent: var(--sb-action);
	--e-global-color-accentsecondary: var(--sb-ocean);
	--e-global-color-white: var(--sb-white);
	--e-global-color-black: var(--sb-white); /* the parent uses "black" as the page background */
	--e-global-color-divider: var(--sb-line);
	--e-global-color-darkdivider: rgba(255, 255, 255, 0.14);
	--e-global-typography-primary-font-family: var(--sb-font-display);
	--e-global-typography-secondary-font-family: var(--sb-font-display);
	--e-global-typography-text-font-family: var(--sb-font-body);
	--e-global-typography-accent-font-family: var(--sb-font-body);

	font-family: var(--sb-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--sb-slate);
	background-color: var(--sb-white);
	-webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. Base typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
	font-family: var(--sb-font-display);
	color: var(--sb-ink);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.12; font-weight: 650; }
h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 600; }
h4 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }

p { text-wrap: pretty; }

a { color: var(--sb-action); transition: color var(--sb-ease); }
a:hover, a:focus { color: var(--sb-action-dark); }

:lang(si),
.sb-si {
	font-family: var(--sb-font-sinhala), var(--sb-font-body);
	line-height: 1.85;
}

:focus-visible {
	outline: 2px solid var(--sb-action);
	outline-offset: 3px;
}

::selection { background: var(--sb-tint); color: var(--sb-ink); }

.sb-eyebrow,
.sb-eyebrow .elementor-heading-title {
	font-family: var(--sb-font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--sb-action);
	margin: 0 0 12px;
}

.sb-lede,
.sb-lede p {
	font-size: clamp(1.075rem, 1.6vw, 1.2rem);
	line-height: 1.6;
	color: var(--sb-slate);
	max-width: 62ch;
}

.sb-muted { color: var(--sb-muted); }

/* Parent "section-title" decoration is not used in the SimpleBiz design. */
.section-title .elementor-heading-title { padding-left: 0; }
.section-title .elementor-heading-title::before { display: none; }

/* ==========================================================================
   3. Header
   ========================================================================== */

header.main-header {
	background: var(--sb-white);
	border-bottom: 1px solid var(--sb-line);
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar header.main-header { top: 32px; }
@media (max-width: 782px) { .admin-bar header.main-header { top: 0; } }

header.main-header .header-sticky,
header.main-header .header-sticky.active {
	position: relative;
	padding: 14px 0;
	background: var(--sb-white);
	transform: none;
}

.sb-header .navbar > .container {
	display: flex;
	align-items: center;
	gap: 24px;
}

.sb-header .navbar-brand { margin-right: auto; padding: 0; }
.sb-header .navbar-brand img.logo { height: 44px; width: auto; }
.sb-site-name { font-family: var(--sb-font-display); font-weight: 700; font-size: 1.5rem; color: var(--sb-ink); }

.main-menu { flex-grow: 0; }
.main-menu ul li a {
	font-family: var(--sb-font-body);
	font-size: 15.5px;
	font-weight: 600;
	color: var(--sb-ink);
	padding: 10px 14px !important;
}
.main-menu ul li a:hover,
.main-menu ul li a:focus,
.main-menu ul li.current-menu-item > a,
.main-menu ul li.current-menu-ancestor > a {
	color: var(--sb-action);
}

/* Dropdowns */
.main-menu ul ul {
	background: var(--sb-white);
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	box-shadow: 0 12px 32px rgba(20, 22, 28, 0.08);
	padding: 8px;
	min-width: 260px;
}
.main-menu ul ul li a {
	border-radius: var(--sb-radius-sm);
	padding: 9px 12px !important;
	font-weight: 500;
}
.main-menu ul ul li a:hover { background: var(--sb-paper); }

.sb-header__cta { flex-shrink: 0; }

/* Mobile menu (SlickNav) */
.slicknav_menu { background: var(--sb-white); border-bottom: 1px solid var(--sb-line); }
.slicknav_nav a,
.slicknav_nav .slicknav_row,
.slicknav_nav .slicknav_row a { color: var(--sb-ink) !important; font-weight: 600; }
.slicknav_nav a:hover,
.slicknav_nav .slicknav_row:hover { background: var(--sb-paper) !important; color: var(--sb-action) !important; }
.slicknav_btn { background: var(--sb-ink) !important; }
.slicknav_icon .slicknav_icon-bar { background-color: var(--sb-white) !important; }

@media (max-width: 991px) {
	.sb-header .navbar > .container { gap: 12px; }
	.sb-header .sb-header__cta { padding: 10px 16px; font-size: 0.92rem; }
}
@media (max-width: 480px) {
	.sb-header .sb-header__cta { padding: 9px 12px; font-size: 0.85rem; }
	.sb-header .navbar-brand img.logo { height: 34px; max-width: 130px; object-fit: contain; }
	.sb-site-name { font-size: 1.25rem; }
}

/* ==========================================================================
   4. Buttons
   .sb-btn is used by the child theme; .sb-btn-* classes go on Elementor
   Button widgets (Advanced > CSS Classes).
   ========================================================================== */

.sb-btn,
.sb-btn-primary .elementor-button,
.sb-btn-secondary .elementor-button,
.sb-btn-light .elementor-button,
.sb-btn-link .elementor-button,
.wpcf7 input[type="submit"],
.btn-default {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--sb-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	padding: 14px 22px;
	border-radius: var(--sb-radius-sm);
	border: 1.5px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--sb-ease), color var(--sb-ease), border-color var(--sb-ease), transform var(--sb-ease);
	backdrop-filter: none;
	margin: 0;
}

.sb-btn:hover,
.elementor-widget-button[class*="sb-btn-"] .elementor-button:hover,
.wpcf7 input[type="submit"]:hover { transform: translateY(-1px); }

.sb-btn .sb-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Primary */
.sb-btn--primary,
.sb-btn-primary .elementor-button,
.wpcf7 input[type="submit"],
.btn-default {
	background: var(--sb-action);
	color: var(--sb-white);
}
.sb-btn--primary:hover, .sb-btn--primary:focus,
.sb-btn-primary .elementor-button:hover, .sb-btn-primary .elementor-button:focus,
.wpcf7 input[type="submit"]:hover,
.btn-default:hover {
	background: var(--sb-action-dark);
	color: var(--sb-white);
}

/* Secondary (outline) */
.sb-btn--secondary,
.sb-btn-secondary .elementor-button {
	background: transparent;
	color: var(--sb-ink);
	border-color: var(--sb-ink);
}
.sb-btn--secondary:hover, .sb-btn--secondary:focus,
.sb-btn-secondary .elementor-button:hover, .sb-btn-secondary .elementor-button:focus {
	background: var(--sb-ink);
	color: var(--sb-white);
}

/* Light (outline on dark sections) */
.sb-btn--light,
.sb-btn-light .elementor-button {
	background: transparent;
	color: var(--sb-white);
	border-color: rgba(255, 255, 255, 0.6);
}
.sb-btn--light:hover, .sb-btn--light:focus,
.sb-btn-light .elementor-button:hover, .sb-btn-light .elementor-button:focus {
	background: var(--sb-white);
	color: var(--sb-ocean);
}

/* WhatsApp */
.sb-btn--whatsapp { background: var(--sb-wa); color: var(--sb-wa-text); }
.sb-btn--whatsapp:hover, .sb-btn--whatsapp:focus { background: #1EBE5A; color: var(--sb-wa-text); }

/* Text link with arrow */
.sb-btn-link .elementor-button {
	background: transparent;
	color: var(--sb-action);
	padding: 4px 0;
}
.sb-btn-link .elementor-button:hover { color: var(--sb-action-dark); transform: none; }

/* Remove the parent's decorative button pseudo-elements */
.btn-default::before,
.btn-default::after { display: none; }
.elementor-widget-button[class*="sb-btn-"],
.elementor-widget-button[class*="sb-btn-"] .elementor-button-wrapper { padding-right: 0 !important; }
.elementor-widget-button[class*="sb-btn-"] .elementor-button::before,
.elementor-widget-button[class*="sb-btn-"] .elementor-button::after { display: none; }

/* The parent turns button icons into a red circle beside the button; SimpleBiz uses a plain inline arrow. */
.elementor-widget-button[class*="sb-btn-"] .elementor-button .elementor-button-icon,
.elementor-widget-button[class*="sb-btn-"] .elementor-button:hover .elementor-button-icon {
	position: static;
	transform: none;
	background: none;
	width: auto;
	height: auto;
	border-radius: 0;
	transition: transform var(--sb-ease);
}
.elementor-widget-button[class*="sb-btn-"] .elementor-button:hover .elementor-button-icon { transform: translateX(3px); }
.elementor-widget-button[class*="sb-btn-"] .elementor-button .elementor-button-icon svg { width: 14px; height: 14px; font-size: 14px; }
.elementor-widget-button[class*="sb-btn-"] .elementor-button .elementor-button-icon svg path { fill: currentColor; }
.elementor-widget-button[class*="sb-btn-"] .elementor-button-content-wrapper { gap: 8px; }

.sb-btn-row,
.sb-btn-row .elementor-shortcode {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

/* ==========================================================================
   5. Sections and layout (classes on Elementor containers)
   ========================================================================== */

.sb-builder-main { overflow-x: clip; }

.e-con.sb-section,
section.sb-section {
	padding-top: var(--sb-section-y);
	padding-bottom: var(--sb-section-y);
}
/* Side gutter: Elementor's default is 10px, too tight on laptops and phones. */
.e-con.sb-section {
	padding-left: clamp(16px, 4vw, 32px);
	padding-right: clamp(16px, 4vw, 32px);
}

.e-con.sb-section--tight { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }

.e-con.sb-section--paper,
section.sb-section--paper { background-color: var(--sb-paper); }

.e-con.sb-section--ocean,
section.sb-section--ocean {
	background-color: var(--sb-ocean);
	color: var(--sb-ocean-text);
}
.sb-section--ocean h1, .sb-section--ocean h2, .sb-section--ocean h3, .sb-section--ocean h4,
.sb-section--ocean .elementor-heading-title { color: var(--sb-white); }
.sb-section--ocean p, .sb-section--ocean li, .sb-section--ocean .sb-lede p { color: var(--sb-ocean-text); }
.sb-section--ocean .sb-eyebrow,
.sb-section--ocean .sb-eyebrow .elementor-heading-title { color: #FF8A8C; }
.sb-section--ocean a:not(.sb-btn):not(.elementor-button) { color: var(--sb-white); }

.sb-section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sb-section__title { margin-bottom: 28px; }

/* Grids: put sb-grid-2 / -3 / -4 on an inner container */
.e-con.sb-grid-2, .e-con.sb-grid-3, .e-con.sb-grid-4,
.sb-card-grid {
	display: grid !important;
	gap: var(--sb-gap);
	align-items: stretch;
}
.e-con.sb-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.e-con.sb-grid-3, .sb-card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.e-con.sb-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.e-con.sb-grid-2 > .e-con, .e-con.sb-grid-3 > .e-con, .e-con.sb-grid-4 > .e-con,
.e-con.sb-grid-2 > .elementor-element, .e-con.sb-grid-3 > .elementor-element, .e-con.sb-grid-4 > .elementor-element {
	width: auto !important;
	max-width: none;
	min-width: 0;
}

/* Two-column split (text + media) */
.e-con.sb-split { gap: clamp(32px, 6vw, 80px); align-items: center; }

/* ==========================================================================
   6. Hero
   ========================================================================== */

.e-con.sb-hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.sb-hero h1 { max-width: 17ch; }
.sb-hero .sb-lede p { font-size: clamp(1.1rem, 1.8vw, 1.25rem); }
.sb-hero__media img { border-radius: var(--sb-radius); box-shadow: 0 24px 48px rgba(15, 58, 74, 0.12); }
.e-con.sb-hero__summary { box-shadow: 0 24px 48px rgba(15, 58, 74, 0.08); }
.sb-hero__summary-title .elementor-heading-title { font-size: 1.25rem; }

.sb-trust-note,
.sb-trust-note p {
	font-size: 0.92rem;
	color: var(--sb-muted);
	margin-top: 4px;
}

/* Page hero (child theme templates) */
.sb-page-hero {
	background: var(--sb-paper);
	padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
	border-bottom: 1px solid var(--sb-line);
}
.sb-page-hero__title { margin: 8px 0 14px; max-width: 22ch; }
.sb-page-hero__lede { font-size: 1.15rem; max-width: 62ch; margin: 0; }
/* Breadcrumbs (parent markup: .breadcrumb-trail > ol.trail-items > li.trail-item) */
.breadcrumb-trail .trail-items {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	font-size: 0.88rem;
}
.breadcrumb-trail .trail-items li { color: var(--sb-muted); font-weight: 500; display: inline-flex; align-items: center; }
.breadcrumb-trail .trail-items li::before { content: none; }
.breadcrumb-trail .trail-items li + li::before {
	content: "/";
	margin: 0 8px;
	color: var(--sb-line);
	font-weight: 400;
}
.breadcrumb-trail .trail-items a { color: var(--sb-slate); text-decoration: none; }
.breadcrumb-trail .trail-items a:hover { color: var(--sb-action); }
.breadcrumb-trail .trail-items .trail-end { color: var(--sb-ink); }

/* Parent page banner for non-Elementor pages and archives */
.page-header {
	background-color: var(--sb-paper);
	margin-top: 0;
	padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
	border-bottom: 1px solid var(--sb-line);
}
.page-header-box h1 { font-size: clamp(2.1rem, 5vw, 3.25rem) !important; color: var(--sb-ink); }
.page-header-box h1 span { color: var(--sb-action); }
.page-header-box ol li, .page-header-box ol li a, .page-header-box .trail-items li { color: var(--sb-muted); }

/* ==========================================================================
   7. Cards
   ========================================================================== */

/* Service card: inner container with class sb-card */
.e-con.sb-card,
.sb-card {
	background: var(--sb-white);
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	padding: clamp(22px, 2.6vw, 30px);
	transition: border-color var(--sb-ease), transform var(--sb-ease);
	justify-content: flex-start;
}
.sb-section--paper .e-con.sb-card { background: var(--sb-white); }
.e-con.sb-card:hover,
a.sb-card:hover { border-color: var(--sb-action); transform: translateY(-2px); }
.sb-card h3, .sb-card .elementor-heading-title { font-size: 1.25rem; }
.sb-card ul,
.sb-card .elementor-text-editor ul {
	margin: 0;
	padding-left: 1.1em;
	font-size: 0.95rem;
	line-height: 1.6;
}
.sb-card ul li::marker { color: var(--sb-action); }
.sb-card .sb-btn-link { margin-top: auto; }

.sb-card .elementor-icon,
.sb-icon-tile .elementor-icon {
	background: var(--sb-tint);
	color: var(--sb-action);
	fill: var(--sb-action);
	border-radius: 10px;
	padding: 11px;
	font-size: 20px;
}
.sb-card .elementor-icon svg { width: 20px; height: 20px; }

/* Plain "why" points (no box) */
.e-con.sb-point {
	border-top: 2px solid var(--sb-ink);
	padding-top: 18px;
	gap: 8px;
}
.sb-section--ocean .e-con.sb-point { border-top-color: rgba(255, 255, 255, 0.4); }

/* Industry tiles */
.e-con.sb-industry {
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	padding: 22px;
	gap: 6px;
	background: var(--sb-white);
}
.sb-industry h3, .sb-industry .elementor-heading-title { font-size: 1.125rem; }
.sb-industry p { font-size: 0.93rem; margin: 0; }

/* Process steps */
.e-con.sb-steps {
	counter-reset: sb-step;
	position: relative;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.e-con.sb-step {
	counter-increment: sb-step;
	position: relative;
	padding-top: 56px;
	gap: 6px;
}
.e-con.sb-step::before {
	content: counter(sb-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--sb-font-display);
	font-weight: 700;
	color: var(--sb-white);
	background: var(--sb-action);
	font-variant-numeric: tabular-nums;
}
@media (min-width: 1025px) {
	.e-con.sb-step::after {
		content: "";
		position: absolute;
		top: 20px;
		left: 52px;
		right: -12px;
		height: 1px;
		background: var(--sb-action);
		opacity: 0.35;
	}
	.e-con.sb-step:last-child::after { display: none; }
}
.sb-step h3, .sb-step .elementor-heading-title { font-size: 1.15rem; }
.sb-step p { font-size: 0.95rem; margin: 0; }

/* Testimonials */
.e-con.sb-quote-card,
.sb-quote {
	background: var(--sb-white);
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	padding: clamp(24px, 3vw, 32px);
	gap: 14px;
	margin: 0;
}
.sb-quote-card p:first-child,
.sb-quote blockquote p {
	font-family: var(--sb-font-display);
	font-size: 1.15rem;
	line-height: 1.5;
	color: var(--sb-ink);
	font-weight: 500;
}
.sb-quote blockquote { margin: 0; padding: 0; border: 0; }
.sb-quote figcaption,
.sb-quote-card .sb-quote-author { font-size: 0.92rem; color: var(--sb-muted); }
.sb-quote { margin: 48px 0; border-left: 3px solid var(--sb-action); }

/* Stats */
.e-con.sb-stat { gap: 4px; }
.sb-stat .elementor-heading-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.sb-stat p { font-size: 0.93rem; margin: 0; }

/* Client name strip */
.sb-logo-strip ul,
ul.sb-logo-strip {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	align-items: center;
}
.sb-logo-strip li {
	font-family: var(--sb-font-display);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--sb-muted);
}
.sb-logo-strip img { height: 36px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter var(--sb-ease), opacity var(--sb-ease); }
.sb-logo-strip img:hover { filter: none; opacity: 1; }

/* Check list (Elementor Icon List with class sb-check-list) */
.sb-check-list .elementor-icon-list-icon i,
.sb-check-list .elementor-icon-list-icon svg { color: var(--sb-action); fill: var(--sb-action); }
.sb-check-list .elementor-icon-list-text { color: var(--sb-slate); }
.sb-section--ocean .sb-check-list .elementor-icon-list-text { color: var(--sb-ocean-text); }

/* Project and post cards ([sb_projects], [sb_latest_posts]) */
.sb-project-card,
.sb-post-card {
	display: flex;
	flex-direction: column;
	background: var(--sb-white);
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	overflow: hidden;
	transition: border-color var(--sb-ease), transform var(--sb-ease);
}
.sb-project-card:hover,
.sb-post-card:hover { border-color: var(--sb-action); transform: translateY(-2px); }
.sb-project-card__media,
.sb-post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	max-width: 100%;
	background: linear-gradient(160deg, #DCE7EC, var(--sb-paper));
	overflow: hidden;
}
.sb-project-card__media img,
.sb-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-project-card__placeholder { display: block; width: 100%; height: 100%; }
.sb-project-card__body,
.sb-post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sb-project-card__title,
.sb-post-card__title { font-size: 1.2rem; margin: 0; }
.sb-project-card__title a,
.sb-post-card__title a { color: var(--sb-ink); text-decoration: none; }
.sb-project-card__title a:hover,
.sb-post-card__title a:hover { color: var(--sb-action); }
.sb-project-card__summary,
.sb-post-card__excerpt { font-size: 0.95rem; margin: 0; }
.sb-post-card__meta { font-size: 0.85rem; color: var(--sb-muted); margin: 0; }

.sb-tag {
	align-self: flex-start;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--sb-ocean);
	background: #E4EEF2;
	border-radius: 999px;
	padding: 3px 10px;
}
.sb-result {
	display: flex;
	gap: 10px;
	align-items: baseline;
	margin: auto 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--sb-line);
	font-size: 0.9rem;
}
.sb-result strong {
	font-family: var(--sb-font-display);
	font-size: 1.4rem;
	color: var(--sb-ink);
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   8. FAQ ([sb_faq])
   ========================================================================== */

.sb-faq { border-bottom: 1px solid var(--sb-line); }
.sb-faq:first-of-type { border-top: 1px solid var(--sb-line); }
.sb-faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
}
.sb-faq summary::-webkit-details-marker { display: none; }
.sb-faq__q { font-size: 1.1rem; margin: 0; font-weight: 600; }
.sb-faq__toggle {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1.5px solid var(--sb-line);
	position: relative;
	transition: background-color var(--sb-ease), border-color var(--sb-ease);
}
.sb-faq__toggle::before,
.sb-faq__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 1.5px;
	background: var(--sb-ink);
	transform: translate(-50%, -50%);
}
.sb-faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--sb-ease); }
.sb-faq[open] .sb-faq__toggle { background: var(--sb-action); border-color: var(--sb-action); }
.sb-faq[open] .sb-faq__toggle::before,
.sb-faq[open] .sb-faq__toggle::after { background: var(--sb-white); }
.sb-faq[open] .sb-faq__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.sb-faq summary:hover .sb-faq__q { color: var(--sb-action); }
.sb-faq__a { padding: 0 48px 20px 0; }
.sb-faq__a p { margin: 0 0 10px; }

/* ==========================================================================
   9. Forms (Contact Form 7)
   ========================================================================== */

.sb-form,
.e-con.sb-form-card {
	background: var(--sb-white);
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	padding: clamp(22px, 3vw, 32px);
}
.sb-section--ocean .sb-form { color: var(--sb-slate); }
.wpcf7 form { display: grid; gap: 14px; }
.wpcf7 form p { margin: 0; }
.wpcf7 label { display: grid; gap: 6px; font-weight: 600; font-size: 0.93rem; color: var(--sb-ink); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	font: inherit;
	font-weight: 400;
	color: var(--sb-ink);
	background: var(--sb-white);
	border: 1.5px solid var(--sb-line);
	border-radius: var(--sb-radius-sm);
	padding: 12px 14px;
	transition: border-color var(--sb-ease);
}
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { border-color: var(--sb-ink); outline: none; box-shadow: 0 0 0 3px var(--sb-tint); }
.wpcf7 .wpcf7-not-valid { border-color: var(--sb-action); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--sb-action); font-size: 0.85rem; font-weight: 500; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: var(--sb-radius-sm); padding: 12px 14px; font-size: 0.93rem; }
.sb-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.sb-form-note { font-size: 0.85rem; color: var(--sb-muted); }
.sb-notice { padding: 12px 16px; border: 1px dashed var(--sb-action); border-radius: var(--sb-radius-sm); color: var(--sb-ink); }

/* Contact details list ([sb_contact_list]) */
.sb-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sb-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.sb-contact-list__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--sb-tint);
	color: var(--sb-action);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.sb-contact-list__icon .sb-icon { width: 18px; height: 18px; }
.sb-contact-list__label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sb-muted); }
.sb-contact-list a { color: var(--sb-ink); font-weight: 600; text-decoration: none; }
.sb-contact-list a:hover { color: var(--sb-action); }

/* ==========================================================================
   10. Case study and article templates
   ========================================================================== */

.sb-case__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 20px 32px;
	margin: 40px 0;
	padding: 24px 0;
	border-bottom: 1px solid var(--sb-line);
}
.sb-case__facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sb-muted); margin-bottom: 4px; }
.sb-case__facts dd { margin: 0; color: var(--sb-ink); font-weight: 500; }
.sb-case__result dd strong { font-family: var(--sb-font-display); font-size: 1.6rem; color: var(--sb-action); font-variant-numeric: tabular-nums; }
.sb-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sb-chips li { font-size: 0.82rem; font-weight: 500; background: var(--sb-paper); border: 1px solid var(--sb-line); border-radius: 999px; padding: 2px 10px; }
.sb-case__image img,
.sb-article__image img { border-radius: var(--sb-radius); width: 100%; height: auto; }
.sb-case__image,
.sb-article__image { margin: 0 0 40px; }

.sb-article__container { max-width: 820px; }
.sb-article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--sb-muted); font-size: 0.93rem; margin: 0; }
.sb-article__meta a { color: var(--sb-slate); }
.sb-page-hero--article { margin-bottom: 40px; }
.sb-article__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding: 24px 0; margin-top: 32px; border-top: 1px solid var(--sb-line); }

.sb-prose { font-size: 1.0625rem; line-height: 1.75; padding-bottom: 32px; }
.sb-prose > * { max-width: 70ch; }
.sb-prose h2 { font-size: 1.75rem !important; margin: 1.8em 0 0.6em; }
.sb-prose h3 { font-size: 1.3rem !important; margin: 1.6em 0 0.5em; }
.sb-prose img { border-radius: var(--sb-radius); height: auto; }
.sb-prose blockquote { border-left: 3px solid var(--sb-action); padding-left: 20px; margin-left: 0; color: var(--sb-ink); }

/* CTA band */
.sb-cta-band__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.sb-cta-band__inner > div:first-child { max-width: 60ch; }
.sb-cta-band__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
section.sb-cta-band { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }

/* Blog archive cards from the parent */
.post-item, .blog-item { border-radius: var(--sb-radius); }

/* ==========================================================================
   11. Footer
   ========================================================================== */

footer.footer.sb-footer {
	background-color: var(--sb-ocean);
	border-top: 0;
}
.sb-footer {
	background: var(--sb-ocean);
	color: var(--sb-ocean-text);
	padding: clamp(56px, 7vw, 88px) 0 28px;
	font-size: 0.95rem;
}
.sb-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.sb-footer__logo { display: inline-block; font-family: var(--sb-font-display); font-weight: 700; font-size: 1.5rem; color: var(--sb-white); text-decoration: none; margin-bottom: 16px; }
.sb-footer__logo img { height: 40px; width: auto; }
.sb-footer__about p { color: var(--sb-ocean-text); max-width: 46ch; }
.sb-footer__heading { font-family: var(--sb-font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sb-white); margin: 0 0 16px; }
.sb-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sb-footer a { color: var(--sb-ocean-text); text-decoration: none; }
.sb-footer a:hover, .sb-footer a:focus { color: var(--sb-white); }
.sb-footer a.sb-footer__logo { color: var(--sb-white); }
.sb-footer .sb-contact-list__icon { background: rgba(255, 255, 255, 0.08); color: var(--sb-white); width: 34px; height: 34px; }
.sb-footer .sb-contact-list__label { color: #9DB8C4; }
.sb-footer .sb-contact-list a { color: var(--sb-white); }
.sb-footer .sb-contact-list { gap: 12px; }
.sb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.88rem;
}
.sb-footer__bottom p { margin: 0; color: #9DB8C4; }

.sb-social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 10px; }
.sb-social a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--sb-white);
	transition: background-color var(--sb-ease), border-color var(--sb-ease);
}
.sb-social a:hover { background: var(--sb-action); border-color: var(--sb-action); color: var(--sb-white); }
.sb-social .sb-icon { width: 17px; height: 17px; }

@media (max-width: 991px) {
	.sb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sb-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.sb-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. Floating WhatsApp button
   ========================================================================== */

.sb-wa-float {
	position: fixed;
	right: calc(20px + env(safe-area-inset-right, 0px));
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 999;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 18px 0 16px;
	border-radius: 999px;
	background: var(--sb-wa);
	color: var(--sb-wa-text);
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--sb-shadow-float);
	transition: transform var(--sb-ease), box-shadow var(--sb-ease);
}
.sb-wa-float:hover,
.sb-wa-float:focus { color: var(--sb-wa-text); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 22, 28, 0.22); }
.sb-wa-float .sb-icon { width: 26px; height: 26px; }
@media (max-width: 640px) {
	.sb-wa-float { width: 56px; padding: 0; justify-content: center; }
	.sb-wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ==========================================================================
   13. Motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.sb-hero .e-con-inner > *,
	.e-con.sb-hero > .e-con {
		animation: sb-rise 600ms ease-out both;
	}
	.e-con.sb-hero > .e-con:nth-child(2) { animation-delay: 120ms; }
}
@keyframes sb-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Hide parent preloader and magic cursor if they are re-enabled by mistake */
.simplebiz #magic-cursor { display: none; }
