/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
	--ct-blue:       #0D3F82;
	--ct-blue-dark:  #163E7A;
	--ct-red:        #BD141E;
	--ct-red-dark:   #C51E2D;
	--ct-gray-bg:    #F7F7F7;
	--ct-text:       #12233D;
	--ct-white:      #ffffff;
	--ct-border:     #e4e9f2;
	--ct-yellow:     #f7c948;

	--ct-font:       'Sarabun', sans-serif;
	--ct-container:  1140px;
	--ct-radius:     3px;
}

/* ── Base Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--ct-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ct-text);
	margin: 0;
	background: var(--ct-white);
}

img { max-width: 100%; height: auto; }

a { color: var(--ct-blue); text-decoration: none; }
a:hover { color: var(--ct-red); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ct-font);
	color: var(--ct-text);
	line-height: 1.2;
	margin: 0 0 0.75em;
}
h1 { font-size: 50px; font-weight: 900; }
h2 { font-size: 30px; font-weight: 900; }
h3 { font-size: 22px; font-weight: 700; }

/* ── Elementor compatibility ────────────────────────────────────────────── */
/* Let Elementor's inline styles control heading colours and spacing inside pages */
.elementor h1,
.elementor h2,
.elementor h3,
.elementor h4,
.elementor h5,
.elementor h6 {
	color: inherit;
	margin: 0;
}
/* Images inside Elementor widgets must NOT be display:block — it breaks text-align centering */
.elementor img { display: inline-block; }
/* Ensure full-width Elementor sections reach the edges */
.site-main { margin: 0; padding: 0; }

/* ── Utility ───────────────────────────────────────────────────────────── */
.container {
	max-width: var(--ct-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 32px;
	padding-right: 32px;
}

.btn {
	display: inline-block;
	background: var(--ct-red);
	color: var(--ct-white);
	font-family: var(--ct-font);
	font-size: 15px;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: var(--ct-radius);
	border: none;
	cursor: pointer;
	transition: background 0.2s;
	text-decoration: none;
}
.btn:hover { background: var(--ct-blue); color: var(--ct-white); }
.btn-blue { background: var(--ct-blue); }
.btn-blue:hover { background: var(--ct-blue-dark); }

/* ── Site Header ───────────────────────────────────────────────────────── */
.ct-topbar {
	background: var(--ct-blue-dark);
	color: rgba(255,255,255,0.85);
	font-size: 13px;
	padding: 6px 0;
}
.ct-topbar .container {
	display: flex;
	align-items: center;
	gap: 24px;
}
.ct-topbar a {
	color: rgba(255,255,255,0.85);
	display: flex;
	align-items: center;
	gap: 6px;
}
.ct-topbar a:hover { color: var(--ct-white); }
.ct-topbar svg { width: 14px; height: 14px; flex-shrink: 0; }

.ct-header {
	background: var(--ct-blue);
	padding: 18px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ct-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.ct-logo img {
	height: 52px;
	width: auto;
}
.ct-logo-text {
	color: var(--ct-white);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.5px;
}

.ct-nav {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ct-nav > li {
	position: relative;
}
.ct-nav > li > a {
	color: var(--ct-white);
	font-size: 15px;
	font-weight: 600;
	padding: 8px 16px;
	display: block;
	transition: color 0.15s;
	white-space: nowrap;
}
.ct-nav > li > a:hover,
.ct-nav > li:hover > a {
	color: var(--ct-yellow);
}

/* Dropdown */
.ct-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--ct-white);
	min-width: 200px;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 100;
}
.ct-nav > li:hover .sub-menu { display: block; }
.ct-nav .sub-menu li a {
	display: block;
	padding: 9px 18px;
	color: var(--ct-text);
	font-size: 14px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}
.ct-nav .sub-menu li a:hover {
	background: var(--ct-gray-bg);
	color: var(--ct-blue);
}

.ct-header-cta {
	background: var(--ct-red);
	color: var(--ct-white) !important;
	padding: 10px 20px;
	border-radius: var(--ct-radius);
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	transition: background 0.2s;
}
.ct-header-cta:hover { background: var(--ct-red-dark) !important; }

/* Mobile hamburger */
.ct-hamburger {
	display: none;
	background: none;
	border: 2px solid rgba(255,255,255,0.6);
	border-radius: 4px;
	cursor: pointer;
	padding: 6px 10px;
	flex-direction: column;
	gap: 4px;
}
.ct-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ct-white);
}

/* ── Site Footer ───────────────────────────────────────────────────────── */
.ct-footer {
	background: var(--ct-blue);
	color: rgba(255,255,255,0.8);
	padding: 64px 0 32px;
}
.ct-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 48px;
}
.ct-footer-logo img {
	height: 54px;
	width: auto;
	margin-bottom: 16px;
	filter: brightness(0) invert(1);
}
.ct-footer-tagline {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 16px;
	color: rgba(255,255,255,0.75);
}
.ct-footer-phone {
	font-size: 20px;
	font-weight: 700;
	color: var(--ct-white);
}
.ct-footer h4 {
	color: var(--ct-white);
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 16px;
}
.ct-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ct-footer ul li { margin-bottom: 8px; }
.ct-footer ul li a {
	color: rgba(255,255,255,0.75);
	font-size: 14px;
	transition: color 0.15s;
}
.ct-footer ul li a:hover { color: var(--ct-white); }
.ct-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	flex-wrap: wrap;
	gap: 8px;
}

/* ── Location Page Template Parts ─────────────────────────────────────── */
.ct-loc-hero {
	background: var(--ct-blue);
	background-size: cover;
	background-position: center;
	padding: 120px 32px;
	text-align: center;
	position: relative;
}
.ct-loc-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(18,35,61,0.65);
}
.ct-loc-hero .container { position: relative; }
.ct-loc-hero h1 {
	color: var(--ct-white);
	font-size: 50px;
	font-weight: 900;
	margin-bottom: 16px;
}
.ct-loc-hero p {
	color: rgba(255,255,255,0.88);
	font-size: 18px;
	max-width: 640px;
	margin: 0 auto 28px;
}

.ct-services-section {
	background: var(--ct-gray-bg);
	padding: 82px 0;
}
.ct-services-section h2 {
	text-align: center;
	margin-bottom: 48px;
}
.ct-service-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}
.ct-service-card {
	background: var(--ct-white);
	border: 1px solid var(--ct-border);
	border-radius: 16px;
	padding: 26px;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.ct-service-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border-color: var(--ct-blue);
}
.ct-service-card h3 {
	font-size: 18px;
	margin-bottom: 8px;
}
.ct-service-card p { font-size: 14px; color: #555; margin: 0; }

.ct-map-section {
	padding: 82px 0;
	background: var(--ct-white);
}
.ct-map-section h2 { text-align: center; margin-bottom: 32px; }
.ct-map-embed {
	width: 100%;
	height: 400px;
	border: 0;
	border-radius: 8px;
}

.ct-cta-section {
	background: var(--ct-blue);
	padding: 82px 0;
	text-align: center;
}
.ct-cta-section h2 { color: var(--ct-white); margin-bottom: 12px; }
.ct-cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 17px; }

/* ── FAQ Shortcode ─────────────────────────────────────────────────────── */
.ct23-faq-list {
	max-width: 800px;
	margin: 0 auto;
}
.ct23-faq-item {
	border: 1px solid var(--ct-border);
	border-radius: var(--ct-radius);
	margin-bottom: 10px;
	overflow: hidden;
}
.ct23-faq-q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--ct-white);
	border: none;
	padding: 18px 22px;
	font-family: var(--ct-font);
	font-size: 16px;
	font-weight: 700;
	color: var(--ct-text);
	cursor: pointer;
	text-align: left;
	transition: background 0.15s, color 0.15s;
}
.ct23-faq-q:hover,
.ct23-faq-q[aria-expanded="true"] {
	background: var(--ct-blue);
	color: var(--ct-white);
}
.ct23-faq-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid currentColor;
	position: relative;
}
.ct23-faq-icon::before,
.ct23-faq-icon::after {
	content: '';
	position: absolute;
	background: currentColor;
	border-radius: 2px;
}
.ct23-faq-icon::before {
	width: 10px;
	height: 2px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.ct23-faq-icon::after {
	width: 2px;
	height: 10px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: transform 0.2s;
}
.ct23-faq-q[aria-expanded="true"] .ct23-faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}
.ct23-faq-a {
	padding: 18px 22px;
	background: var(--ct-gray-bg);
	font-size: 15px;
	line-height: 1.7;
}
.ct23-faq-a p { margin: 0; }

/* ── 404 / No Results ──────────────────────────────────────────────────── */
.ct-error-page {
	padding: 120px 32px;
	text-align: center;
}
.ct-error-page h1 { font-size: 80px; color: var(--ct-blue); margin-bottom: 8px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.ct-footer-grid { grid-template-columns: 1fr 1fr; }
	h1 { font-size: 36px; }
	.ct-loc-hero h1 { font-size: 36px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
	.ct-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	.container { padding-left: 20px; padding-right: 20px; }
	.ct-footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.ct-footer-bottom { flex-direction: column; text-align: center; }
	h1 { font-size: 28px; }
	h2 { font-size: 22px; }

	.ct-hamburger { display: flex; }
	.ct-nav-wrap {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ct-blue-dark);
		padding: 16px 0;
		flex-direction: column;
	}
	.ct-nav-wrap.open { display: flex; }
	.ct-nav {
		flex-direction: column;
		width: 100%;
	}
	.ct-nav > li > a { padding: 12px 24px; }
	.ct-nav .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
		background: rgba(0,0,0,0.2);
		border-radius: 0;
	}
	.ct-nav .sub-menu li a { color: rgba(255,255,255,0.8); }
	.ct-header-cta { margin: 12px 24px; display: block; text-align: center; }
}
