/*
Theme Name: Coachline
Theme URI: https://example.com/coachline
Author: Coachline
Author URI: https://example.com
Description: A coach hire and commuter travel theme. Full-width hero with image or video background, alternating service sections, fleet listings, stats, news and newsletter blocks. Designed to pair with the "Coach Hire Quote" plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coachline
Tags: custom-menu, custom-logo, featured-images, translation-ready, two-columns, block-styles, wide-blocks
*/

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */
:root {
	--cl-brand: #0f3d3e;
	--cl-brand-dark: #092828;
	--cl-accent: #c8d92a;
	--cl-accent-dark: #a9b921;
	--cl-ink: #16202a;
	--cl-body: #4a5763;
	--cl-line: #e2e7ec;
	--cl-bg: #ffffff;
	--cl-bg-alt: #f4f7f8;
	--cl-white: #ffffff;
	--cl-radius: 10px;
	--cl-radius-lg: 18px;
	--cl-shadow: 0 2px 6px rgba(16, 32, 42, .06), 0 12px 32px rgba(16, 32, 42, .08);
	--cl-shadow-sm: 0 1px 3px rgba(16, 32, 42, .08);
	--cl-wrap: 1240px;
	--cl-wrap-narrow: 820px;
	--cl-wrap-wide: 1600px;
	--cl-sbw: 0px;
	--cl-header-h: 88px;
	--cl-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--cl-font-head: var(--cl-font);
	--cl-ease: cubic-bezier(.4, 0, .2, 1);
}

/* -------------------------------------------------------------------------
   2. Reset / base
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--cl-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--cl-body);
	background: var(--cl-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--cl-brand); text-decoration: none; transition: color .2s var(--cl-ease); }
a:hover { color: var(--cl-accent-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cl-font-head);
	color: var(--cl-ink);
	line-height: 1.18;
	margin: 0 0 .6em;
	font-weight: 700;
	letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }

blockquote {
	margin: 1.6em 0;
	padding: .2em 0 .2em 1.4em;
	border-left: 4px solid var(--cl-accent);
	font-size: 1.15em;
	color: var(--cl-ink);
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
pre { background: var(--cl-bg-alt); padding: 1.2em; border-radius: var(--cl-radius); overflow: auto; }

table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em; }
th, td { border: 1px solid var(--cl-line); padding: .65em .9em; text-align: left; }
th { background: var(--cl-bg-alt); color: var(--cl-ink); }

hr { border: 0; border-top: 1px solid var(--cl-line); margin: 2.5rem 0; }

:focus-visible { outline: 3px solid var(--cl-accent); outline-offset: 2px; border-radius: 4px; }

/* -------------------------------------------------------------------------
   3. Layout helpers
   ---------------------------------------------------------------------- */
.cl-wrap { width: 100%; max-width: var(--cl-wrap); margin: 0 auto; padding: 0 24px; }
.cl-wrap--narrow { max-width: var(--cl-wrap-narrow); }
.cl-wrap--wide { max-width: var(--cl-wrap-wide); }
.cl-wrap--flush { max-width: none; padding: 0; }

/* Breakout utilities.
   Add "cl-full" as the Extra class name on any WPBakery row (or block, or
   element) to make just that row run edge to edge, even inside a container.
   "cl-full-bleed" does the same but keeps the text lined up with the rest of
   the page; "cl-wide" widens without going all the way. */
.cl-full,
.cl-full-bleed {
	/* --cl-sbw is the scrollbar width, measured in main.js, so a breakout row
	   lands exactly on the page edges instead of overshooting by the scrollbar. */
	width: calc(100vw - var(--cl-sbw));
	max-width: calc(100vw - var(--cl-sbw));
	margin-left: calc(50% - 50vw + (var(--cl-sbw) / 2));
	margin-right: calc(50% - 50vw + (var(--cl-sbw) / 2));
}
.cl-full-bleed > .vc_column_container,
.cl-full-bleed > .wpb_column,
.cl-full-bleed > * {
	max-width: var(--cl-wrap);
	margin-left: auto;
	margin-right: auto;
}
.cl-wide {
	width: auto;
	max-width: var(--cl-wrap-wide);
	margin-left: calc(50% - min(50vw, var(--cl-wrap-wide) / 2));
	margin-right: calc(50% - min(50vw, var(--cl-wrap-wide) / 2));
}
/* Rows that go edge to edge should not double up on the container padding. */
.cl-wrap > .cl-full,
.cl-wrap > .cl-full-bleed { padding-left: 0; padding-right: 0; }

/* WPBakery rows.
   .vc_row already carries -15px side margins and .vc_column-inner carries 15px
   padding, so a breakout row needs both neutralised — and the selectors need
   to outrank js_composer's own, hence the .cl-content prefix. */
.cl-content .vc_row.cl-full,
.cl-content .vc_row.cl-full-bleed,
.cl-content .vc_section.cl-full {
	width: calc(100vw - var(--cl-sbw));
	max-width: calc(100vw - var(--cl-sbw));
	margin-left: calc(50% - 50vw + (var(--cl-sbw) / 2));
	margin-right: calc(50% - 50vw + (var(--cl-sbw) / 2));
	padding-left: 0;
	padding-right: 0;
}

.cl-content .vc_row.cl-full > .vc_column_container > .vc_column-inner,
.cl-content .vc_section.cl-full > .vc_row > .vc_column_container > .vc_column-inner {
	padding-left: 0;
	padding-right: 0;
}

/* Background edge to edge, content still aligned with the rest of the page. */
.cl-content .vc_row.cl-full-bleed > .vc_column_container > .vc_column-inner {
	max-width: var(--cl-wrap);
	margin-left: auto;
	margin-right: auto;
}

/* Anything WPBakery nests deeper — a shortcode section inside a column — can
   take the class too, as long as its column spans the full row (vc_col-sm-12). */
.cl-content .wpb_wrapper > .cl-full,
.cl-content .wpb_wrapper > .cl-full-bleed { margin-top: 0; margin-bottom: 0; }

/* WPBakery's own "Stretch row" option works inside the theme container too. */
.cl-content .vc_row[data-vc-full-width] { overflow: visible; }

.cl-section { padding: clamp(48px, 7vw, 88px) 0; }
.cl-section--tight { padding: clamp(34px, 4.5vw, 56px) 0; }
.cl-section--alt { background: var(--cl-bg-alt); }
.cl-section--brand { background: var(--cl-brand); color: rgba(255, 255, 255, .82); }
.cl-section--brand h1, .cl-section--brand h2, .cl-section--brand h3 { color: #fff; }

.cl-section__head { max-width: 720px; margin: 0 0 clamp(28px, 4vw, 48px); }
.cl-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.cl-section__head p { font-size: 1.06rem; margin-bottom: 0; }

.cl-eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cl-brand);
	margin-bottom: .8em;
}
.cl-section--brand .cl-eyebrow { color: var(--cl-accent); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--cl-brand); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--cl-radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* -------------------------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------------------- */
.cl-btn,
.wp-block-button__link,
input[type="submit"],
button.cl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	font-family: inherit;
	font-size: .97rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 15px 28px;
	border: 2px solid var(--cl-brand);
	border-radius: 100px;
	background: var(--cl-brand);
	color: #fff;
	cursor: pointer;
	text-align: center;
	transition: background .2s var(--cl-ease), color .2s var(--cl-ease), border-color .2s var(--cl-ease), transform .2s var(--cl-ease);
}
.cl-btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover {
	background: var(--cl-brand-dark);
	border-color: var(--cl-brand-dark);
	color: #fff;
	transform: translateY(-1px);
}

.cl-btn--accent { background: var(--cl-accent); border-color: var(--cl-accent); color: var(--cl-ink); }
.cl-btn--accent:hover { background: var(--cl-accent-dark); border-color: var(--cl-accent-dark); color: var(--cl-ink); }

.cl-btn--ghost { background: transparent; color: var(--cl-brand); }
.cl-btn--ghost:hover { background: var(--cl-brand); color: #fff; }

.cl-btn--light { background: #fff; border-color: #fff; color: var(--cl-ink); }
.cl-btn--light:hover { background: var(--cl-accent); border-color: var(--cl-accent); color: var(--cl-ink); }

.cl-btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.cl-btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--cl-ink); }

.cl-btn--sm { padding: 10px 20px; font-size: .88rem; }
.cl-btn--block { width: 100%; }

.cl-link-arrow {
	display: inline-flex; align-items: center; gap: .45em;
	font-weight: 700; color: var(--cl-brand);
}
.cl-link-arrow::after { content: "\2192"; transition: transform .2s var(--cl-ease); }
.cl-link-arrow:hover::after { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   5. Header
   ---------------------------------------------------------------------- */
.cl-header {
	position: sticky; top: 0; z-index: 90;
	background: #fff;
	border-bottom: 1px solid var(--cl-line);
}
.cl-header.is-stuck { box-shadow: var(--cl-shadow-sm); }

.cl-topbar {
	background: var(--cl-brand);
	color: rgba(255, 255, 255, .85);
	font-size: .85rem;
}
.cl-topbar .cl-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.cl-topbar a { color: #fff; }
.cl-topbar a:hover { color: var(--cl-accent); }
.cl-topbar__msg { margin: 0; }
.cl-topbar__links { display: flex; gap: 20px; align-items: center; }
.cl-topbar__menu { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }

.cl-header__inner {
	display: flex; align-items: center; gap: 24px;
	min-height: var(--cl-header-h);
}

.cl-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cl-brand img { max-height: 54px; width: auto; }
.cl-brand__text { font-size: 1.4rem; font-weight: 800; color: var(--cl-brand); letter-spacing: -.03em; }
.cl-brand__tagline { font-size: .78rem; color: var(--cl-body); margin: 0; }

.cl-header__nav { margin-left: auto; }
.cl-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cl-header__phone { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--cl-ink); white-space: nowrap; }
.cl-header__phone:hover { color: var(--cl-brand); }

/* Primary navigation */
.cl-menu, .cl-menu ul { list-style: none; margin: 0; padding: 0; }
.cl-menu { display: flex; align-items: center; gap: 4px; }
.cl-menu > li { position: relative; }
.cl-menu > li > a {
	display: inline-flex; align-items: center; gap: .4em;
	padding: 12px 14px;
	font-size: .97rem; font-weight: 600; color: var(--cl-ink);
	border-radius: var(--cl-radius);
}
.cl-menu > li > a:hover,
.cl-menu > li.current-menu-item > a,
.cl-menu > li.current-menu-ancestor > a { color: var(--cl-brand); background: var(--cl-bg-alt); }

.cl-menu .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-left: 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.cl-menu .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
	min-width: 250px; padding: 10px;
	background: #fff; border: 1px solid var(--cl-line); border-radius: var(--cl-radius-lg);
	box-shadow: var(--cl-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s var(--cl-ease), transform .18s var(--cl-ease), visibility .18s;
}
.cl-menu li:hover > .sub-menu,
.cl-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cl-menu .sub-menu a {
	display: block; padding: 10px 14px; border-radius: 8px;
	font-size: .93rem; font-weight: 500; color: var(--cl-body);
}
.cl-menu .sub-menu a:hover { background: var(--cl-bg-alt); color: var(--cl-brand); }
.cl-menu .sub-menu .sub-menu { top: -10px; left: 100%; }

/* Mobile toggle */
.cl-burger {
	display: none;
	width: 46px; height: 46px;
	align-items: center; justify-content: center;
	background: var(--cl-bg-alt); border: 0; border-radius: var(--cl-radius);
	cursor: pointer; padding: 0;
}
.cl-burger span { position: relative; display: block; width: 20px; height: 2px; background: var(--cl-ink); transition: .2s var(--cl-ease); }
.cl-burger span::before, .cl-burger span::after {
	content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--cl-ink); transition: .2s var(--cl-ease);
}
.cl-burger span::before { top: -6px; }
.cl-burger span::after { top: 6px; }
.cl-burger[aria-expanded="true"] span { background: transparent; }
.cl-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.cl-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* -------------------------------------------------------------------------
   6. Hero
   ---------------------------------------------------------------------- */
.cl-hero {
	position: relative;
	display: flex; align-items: center;
	min-height: clamp(420px, 62vh, 640px);
	padding: clamp(56px, 8vw, 96px) 0;
	background: var(--cl-brand-dark) center/cover no-repeat;
	color: #fff;
	overflow: hidden;
}
.cl-hero--short { min-height: 300px; padding: clamp(44px, 6vw, 72px) 0; }

.cl-hero__media { position: absolute; inset: 0; z-index: 0; }
.cl-hero__media video,
.cl-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cl-hero__overlay {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(100deg, rgba(9, 40, 40, .82) 0%, rgba(9, 40, 40, .55) 55%, rgba(9, 40, 40, .28) 100%);
}
.cl-hero .cl-wrap { position: relative; z-index: 2; }
.cl-hero__inner { max-width: 720px; }
.cl-hero h1 { color: #fff; margin-bottom: .35em; }
.cl-hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .9); margin-bottom: 1.7em; }
.cl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cl-hero .cl-eyebrow { color: var(--cl-accent); }

.cl-hero__scroll {
	position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2;
	color: rgba(255, 255, 255, .8); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}

/* Page hero (interior pages) */
.cl-pagehero { background: var(--cl-brand); color: #fff; padding: clamp(44px, 6vw, 76px) 0; position: relative; }
.cl-pagehero h1 { color: #fff; margin-bottom: .3em; }
.cl-pagehero__excerpt { color: rgba(255, 255, 255, .85); max-width: 720px; margin: 0; }
.cl-pagehero--image { background-size: cover; background-position: center; }
.cl-pagehero--image::before { content: ""; position: absolute; inset: 0; background: rgba(9, 40, 40, .72); }
.cl-pagehero--image .cl-wrap { position: relative; z-index: 1; }

.cl-breadcrumbs { font-size: .86rem; color: rgba(255, 255, 255, .75); margin-bottom: .8em; }
.cl-breadcrumbs a { color: #fff; }
.cl-breadcrumbs span + span::before { content: "/"; margin: 0 .5em; opacity: .5; }

/* Quote bar slot: where the plugin shortcode sits under the banner */
.cl-quotebar { position: relative; z-index: 3; background: var(--cl-bg-alt); }
.cl-quotebar--overlap { margin-top: clamp(-90px, -6vw, -40px); background: transparent; }
.cl-quotebar--overlap .cl-quotebar__inner {
	background: #fff; border-radius: var(--cl-radius-lg); box-shadow: var(--cl-shadow); padding: clamp(20px, 3vw, 32px);
}
.cl-quotebar__inner > *:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   7. Feature rows (alternating image / text)
   ---------------------------------------------------------------------- */
.cl-featurerow { padding: clamp(40px, 5.5vw, 72px) 0; }
.cl-featurerow:nth-child(even) { background: var(--cl-bg-alt); }
.cl-featurerow__grid {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 5vw, 64px); align-items: center;
}
.cl-featurerow--right .cl-featurerow__media { order: 2; }
.cl-featurerow__media { position: relative; }
.cl-featurerow__media img,
.cl-featurerow__media video {
	width: 100%; border-radius: var(--cl-radius-lg); box-shadow: var(--cl-shadow); aspect-ratio: 4 / 3; object-fit: cover;
}
.cl-featurerow__media .cl-placeholder { aspect-ratio: 4 / 3; }
.cl-featurerow__body h2 { margin-bottom: .5em; }
.cl-featurerow__body > *:last-child { margin-bottom: 0; }
.cl-featurerow__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

.cl-placeholder {
	display: flex; align-items: center; justify-content: center;
	width: 100%;
	background: repeating-linear-gradient(45deg, #eef2f4, #eef2f4 12px, #e6ecee 12px, #e6ecee 24px);
	border-radius: var(--cl-radius-lg);
	color: #93a3ad; font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
	min-height: 200px;
}

/* -------------------------------------------------------------------------
   8. Cards & grids
   ---------------------------------------------------------------------- */
.cl-grid { display: grid; gap: clamp(18px, 2.5vw, 30px); }
.cl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cl-grid--4 { grid-template-columns: repeat(4, 1fr); }

.cl-card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--cl-line); border-radius: var(--cl-radius-lg);
	overflow: hidden;
	transition: transform .22s var(--cl-ease), box-shadow .22s var(--cl-ease);
}
.cl-card:hover { transform: translateY(-4px); box-shadow: var(--cl-shadow); }
.cl-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cl-bg-alt); }
.cl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--cl-ease); }
.cl-card:hover .cl-card__media img { transform: scale(1.04); }
.cl-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cl-card__meta { font-size: .82rem; color: #7c8b96; margin-bottom: .5em; }
.cl-card__title { font-size: 1.2rem; margin-bottom: .5em; }
.cl-card__title a { color: inherit; }
.cl-card__title a:hover { color: var(--cl-brand); }
.cl-card__body p { font-size: .96rem; }
.cl-card__body .cl-link-arrow { margin-top: auto; padding-top: .6em; }

.cl-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .7em; }
.cl-tag {
	display: inline-block; padding: 3px 10px; border-radius: 100px;
	background: var(--cl-bg-alt); color: var(--cl-brand);
	font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* Fleet spec list */
.cl-specs { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 6px; }
.cl-specs li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; border-bottom: 1px dashed var(--cl-line); padding-bottom: 6px; }
.cl-specs li span:first-child { color: #7c8b96; }
.cl-specs li span:last-child { font-weight: 600; color: var(--cl-ink); }

/* -------------------------------------------------------------------------
   9. Stats strip
   ---------------------------------------------------------------------- */
.cl-stats { background: var(--cl-brand); color: #fff; }
.cl-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.cl-stat { text-align: center; padding: 8px 4px; }
.cl-stat__icon { font-size: 2rem; line-height: 1; margin-bottom: .35em; color: var(--cl-accent); }
.cl-stat__value { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: #fff; margin: 0 0 .15em; letter-spacing: -.02em; }
.cl-stat__label { color: rgba(255, 255, 255, .8); font-size: .96rem; margin: 0; }

/* -------------------------------------------------------------------------
   10. Newsletter
   ---------------------------------------------------------------------- */
.cl-newsletter { background: var(--cl-bg-alt); }
.cl-newsletter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.cl-newsletter__form { display: grid; gap: 12px; }
.cl-newsletter__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Shared form controls (theme + plugin inherit) */
.cl-field { display: flex; flex-direction: column; gap: 6px; }
.cl-field label { font-size: .88rem; font-weight: 600; color: var(--cl-ink); }
.cl-input, input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], input[type="time"], input[type="search"],
input[type="password"], select, textarea {
	width: 100%;
	font-family: inherit; font-size: .97rem; color: var(--cl-ink);
	padding: 13px 15px;
	background: #fff;
	border: 1px solid var(--cl-line); border-radius: var(--cl-radius);
	transition: border-color .18s var(--cl-ease), box-shadow .18s var(--cl-ease);
}
input:focus, select:focus, textarea:focus {
	outline: none; border-color: var(--cl-brand);
	box-shadow: 0 0 0 3px rgba(15, 61, 62, .12);
}
textarea { min-height: 120px; resize: vertical; }
select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5763' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}

/* -------------------------------------------------------------------------
   11. Content / posts
   ---------------------------------------------------------------------- */
.cl-main { display: block; }
.cl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); }
.cl-layout--full { grid-template-columns: minmax(0, 1fr); }

.cl-entry { max-width: 100%; }
.cl-entry__meta { font-size: .88rem; color: #7c8b96; margin-bottom: 1.4em; display: flex; flex-wrap: wrap; gap: 16px; }
.cl-entry__thumb { margin-bottom: 1.8em; }
.cl-entry__thumb img { width: 100%; border-radius: var(--cl-radius-lg); }

.cl-content > *:last-child { margin-bottom: 0; }
.cl-content h2, .cl-content h3, .cl-content h4 { margin-top: 1.6em; }
.cl-content img { border-radius: var(--cl-radius); }
.cl-content ul li, .cl-content ol li { margin-bottom: .4em; }
.cl-content .wp-block-image figcaption,
.cl-content figcaption { font-size: .86rem; color: #7c8b96; text-align: center; }

/* Page-builder content (WPBakery / Elementor / Divi) manages its own spacing,
   backgrounds and row widths, so the theme only supplies the container. */
.cl-home-content--builder { padding: 0; }
.cl-content--builder { max-width: none; }
.cl-content--builder > .vc_row:first-child { margin-top: 0; }
.cl-content--builder .vc_row { max-width: 100%; }
.cl-content--builder p:last-child { margin-bottom: 0; }

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.cl-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.cl-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 12px;
	border: 1px solid var(--cl-line); border-radius: var(--cl-radius);
	font-weight: 600; color: var(--cl-ink);
}
.cl-pagination .page-numbers:hover { border-color: var(--cl-brand); color: var(--cl-brand); }
.cl-pagination .page-numbers.current { background: var(--cl-brand); border-color: var(--cl-brand); color: #fff; }

/* Sidebar / widgets */
.cl-sidebar { align-self: start; position: sticky; top: calc(var(--cl-header-h) + 20px); }
.cl-widget { background: var(--cl-bg-alt); border-radius: var(--cl-radius-lg); padding: 24px; margin-bottom: 24px; }
.cl-widget:last-child { margin-bottom: 0; }
.cl-widget__title { font-size: 1.05rem; margin-bottom: .8em; }
.cl-widget ul { list-style: none; margin: 0; padding: 0; }
.cl-widget li { padding: 7px 0; border-bottom: 1px solid var(--cl-line); font-size: .95rem; }
.cl-widget li:last-child { border-bottom: 0; }

.cl-searchform { display: flex; gap: 8px; }
.cl-searchform input[type="search"] { flex: 1; }

/* Comments */
.cl-comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--cl-line); }
.cl-comments ol { list-style: none; padding: 0; }
.cl-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--cl-line); }
.cl-comments .children { padding-left: 28px; }

/* -------------------------------------------------------------------------
   12. Footer
   ---------------------------------------------------------------------- */
.cl-footer { background: var(--cl-brand-dark); color: rgba(255, 255, 255, .72); padding-top: clamp(44px, 6vw, 72px); font-size: .95rem; }
.cl-footer a { color: rgba(255, 255, 255, .82); }
.cl-footer a:hover { color: var(--cl-accent); }
.cl-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); padding-bottom: 40px; }
.cl-footer__title { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.cl-footer ul { list-style: none; margin: 0; padding: 0; }
.cl-footer li { margin-bottom: .55em; }
.cl-footer__brand img { max-height: 52px; margin-bottom: 16px; }
.cl-footer__contact { list-style: none; padding: 0; margin: 0 0 1.2em; }
.cl-footer__contact li { display: flex; gap: .6em; }
.cl-footer__social { display: flex; gap: 10px; }
.cl-footer__social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255, 255, 255, .1); color: #fff;
}
.cl-footer__social a:hover { background: var(--cl-accent); color: var(--cl-ink); }

.cl-footer__col { min-width: 0; }
.cl-footer__hint { font-size: .85rem; opacity: .75; }
.cl-footer__widget { margin-bottom: 20px; }
.cl-footer__widget:last-child { margin-bottom: 0; }

.cl-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 22px 0;
	display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
	font-size: .87rem;
}
.cl-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.cl-footer__bottom li { margin: 0; }

/* -------------------------------------------------------------------------
   13. Utilities & motion
   ---------------------------------------------------------------------- */
.cl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--cl-ease), transform .6s var(--cl-ease); }
.cl-reveal.is-visible { opacity: 1; transform: none; }

.cl-text-center { text-align: center; }
.cl-mb-0 { margin-bottom: 0; }
.cl-mt-3 { margin-top: 1.5rem; }

/* -------------------------------------------------------------------------
   14. Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.cl-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.cl-footer__grid { grid-template-columns: 1fr 1fr; }
	.cl-header__phone span { display: none; }
}

@media (max-width: 980px) {
	.cl-layout { grid-template-columns: minmax(0, 1fr); }
	.cl-sidebar { position: static; }
	.cl-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.cl-topbar__msg { display: none; }

	.cl-burger { display: inline-flex; }
	.cl-header__nav {
		position: fixed; inset: 0 0 0 auto; z-index: 120;
		width: min(360px, 88vw);
		background: #fff; padding: 88px 20px 32px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .28s var(--cl-ease);
		box-shadow: -8px 0 30px rgba(0, 0, 0, .12);
	}
	.cl-header__nav.is-open { transform: none; }
	.cl-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.cl-menu > li > a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--cl-line); }
	.cl-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; padding: 0 0 8px 14px; min-width: 0;
		display: none;
	}
	.cl-menu li.is-open > .sub-menu { display: block; }
	.cl-menu .menu-item-has-children > a::after { margin-left: auto; }
	.cl-nav-overlay {
		position: fixed; inset: 0; z-index: 110;
		background: rgba(16, 32, 42, .5);
		opacity: 0; visibility: hidden; transition: .25s var(--cl-ease);
	}
	.cl-nav-overlay.is-open { opacity: 1; visibility: visible; }
	body.cl-nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.cl-featurerow__grid { grid-template-columns: 1fr; }
	.cl-featurerow--right .cl-featurerow__media { order: 0; }
	.cl-grid--2, .cl-grid--3, .cl-grid--4 { grid-template-columns: 1fr; }
	.cl-stats__grid { grid-template-columns: 1fr; }
	.cl-newsletter__grid { grid-template-columns: 1fr; }
	.cl-footer__grid { grid-template-columns: 1fr; }
	.cl-quotebar--overlap { margin-top: 0; }
	.cl-quotebar--overlap .cl-quotebar__inner { box-shadow: none; padding: 0; }
	.cl-hero__actions .cl-btn { width: 100%; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.cl-reveal { opacity: 1; transform: none; }
}

@media print {
	.cl-header, .cl-footer, .cl-quotebar, .cl-hero__media { display: none !important; }
}
