/* ==========================================================================
   Creswen theme styles
   Colours and fonts mirror the Elementor global kit set by Creswen Setup.
   ========================================================================== */

:root {
	--cw-navy: #071521;
	--cw-deep: #0D2233;
	--cw-gold: #D9A94A;
	--cw-gold-dark: #C4943A;
	--cw-white: #FFFFFF;
	--cw-light: #F5F6F7;
	--cw-text: #17212B;
	--cw-muted: #5B6773;
	--cw-kentradio: #08A9E6;
	--cw-londonradio: #E91E3D;
	--cw-sussexradio: #8E44D8;
	--cw-kentpodcast: #00A878;
	--cw-head: "Outfit", "Helvetica Neue", Arial, sans-serif;
	--cw-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--cw-header-h: 88px;
	--cw-radius: 12px;
	--cw-max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cw-white);
	color: var(--cw-text);
	font-family: var(--cw-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { font-family: var(--cw-head); font-weight: 700; line-height: 1.15; color: inherit; }

.screen-reader-text, .cw-hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.cw-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--cw-gold); color: var(--cw-navy); padding: 8px 14px; border-radius: 6px; }
.cw-skip:focus { left: 8px; }

.cw-svg { display: inline-flex; width: 1em; height: 1em; }
.cw-svg svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Buttons (theme parts — Elementor buttons are styled in the editor)
   -------------------------------------------------------------------------- */
.cw-btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--cw-body); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.cw-btn .cw-svg { transition: transform .2s; }
.cw-btn:hover .cw-svg { transform: translateX(3px); }
.cw-btn--gold { background: var(--cw-gold); color: var(--cw-navy); }
.cw-btn--gold:hover { background: #E8BD62; color: var(--cw-navy); }
.cw-btn--outline { border-color: currentColor; color: var(--cw-white); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.cw-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 999;
	background: var(--cw-navy);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: background .3s, box-shadow .3s, border-color .3s;
}
.admin-bar .cw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cw-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cw-header { position: absolute; } .admin-bar .cw-header.is-scrolled { position: fixed; top: 0; } }

.cw-header-transparent .cw-header:not(.is-scrolled):not(.is-open) {
	background: linear-gradient(180deg, rgba(7, 21, 33, .75) 0%, rgba(7, 21, 33, 0) 100%);
	border-bottom-color: transparent;
}
.cw-header.is-scrolled { background: rgba(7, 21, 33, .97); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }

.cw-header-solid .cw-main { padding-top: var(--cw-header-h); }

.cw-header-inner {
	max-width: var(--cw-max); margin: 0 auto; padding: 0 24px;
	height: var(--cw-header-h); display: flex; align-items: center; gap: 32px;
}

/* Logo */
.cw-logo { margin: 0; font-size: inherit; line-height: 1; flex-shrink: 0; }
.cw-logo a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cw-white); }
.cw-logo-mark { width: 46px; height: 46px; color: var(--cw-gold); flex-shrink: 0; }
.cw-logo-text { display: flex; flex-direction: column; }
.cw-logo-name { font-family: var(--cw-head); font-weight: 700; font-size: 30px; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.cw-logo-tagline { font-family: var(--cw-body); font-size: 9.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; margin-top: 5px; color: rgba(255, 255, 255, .85); }
.cw-logo--custom img { max-height: 56px; width: auto; display: block; }

/* Nav */
.cw-nav { flex: 1; display: flex; justify-content: center; }
.cw-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.cw-menu > li { position: relative; }
.cw-menu a {
	display: flex; align-items: center; gap: 4px; padding: 10px 14px;
	color: var(--cw-white); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 6px;
	transition: color .2s;
}
.cw-menu a .cw-svg { font-size: 14px; opacity: .8; }
.cw-menu > li > a:hover,
.cw-menu > li.current-menu-item > a,
.cw-menu > li.current-menu-ancestor > a,
.cw-menu > li.current_page_item > a { color: var(--cw-gold); }

.cw-menu .sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 230px;
	background: var(--cw-deep); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.cw-menu li:hover > .sub-menu,
.cw-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cw-menu .sub-menu a { padding: 9px 12px; font-size: 14px; }
.cw-menu .sub-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--cw-gold); }

.cw-header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.cw-icon-btn { background: none; border: 0; color: var(--cw-white); font-size: 20px; padding: 8px; cursor: pointer; display: inline-flex; }
.cw-icon-btn:hover { color: var(--cw-gold); }
.cw-header-cta { padding: 12px 24px; }
.cw-nav-cta { display: none; }

.cw-burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.cw-burger span { display: block; height: 2px; background: var(--cw-white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.cw-header.is-open .cw-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cw-header.is-open .cw-burger span:nth-child(2) { opacity: 0; }
.cw-header.is-open .cw-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.cw-search { border-top: 1px solid rgba(255, 255, 255, .08); background: var(--cw-navy); }
.cw-search-inner { max-width: 760px; margin: 0 auto; padding: 22px 24px; display: flex; gap: 12px; align-items: center; }
.cw-searchform { flex: 1; display: flex; background: rgba(255, 255, 255, .07); border-radius: 999px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.cw-searchform input { flex: 1; background: transparent; border: 0; color: inherit; padding: 13px 20px; font: inherit; font-size: 16px; outline: none; }
.cw-searchform button { background: var(--cw-gold); color: var(--cw-navy); border: 0; padding: 0 20px; cursor: pointer; font-size: 18px; display: inline-flex; align-items: center; }
.cw-search .cw-searchform input { color: var(--cw-white); }
.cw-section .cw-searchform, .cw-page-head .cw-searchform { max-width: 520px; background: var(--cw-light); border-color: #E2E5E8; color: var(--cw-text); }

@media (max-width: 1180px) {
	.cw-menu a { padding: 10px 10px; font-size: 14.5px; }
	.cw-header-inner { gap: 20px; }
}

@media (max-width: 1024px) {
	:root { --cw-header-h: 76px; }
	.cw-logo-name { font-size: 25px; }
	.cw-logo-mark { width: 40px; height: 40px; }
	.cw-burger { display: inline-flex; }
	.cw-header-cta { display: none; }
	.cw-nav {
		position: fixed; top: var(--cw-header-h); left: 0; right: 0; bottom: 0;
		background: var(--cw-navy); padding: 18px 24px 40px; overflow-y: auto;
		display: block; opacity: 0; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; visibility: hidden;
	}
	.admin-bar .cw-nav { top: calc(var(--cw-header-h) + 46px); }
	.cw-header.is-open .cw-nav { opacity: 1; transform: translateY(0); visibility: visible; }
	.cw-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.cw-menu > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.cw-menu a { padding: 15px 4px; font-size: 18px; justify-content: space-between; }
	.cw-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 10px 14px; display: none; }
	.cw-menu li.is-expanded > .sub-menu { display: block; }
	.cw-menu li.is-expanded > a .cw-svg { transform: rotate(180deg); }
	.cw-menu .sub-menu a { font-size: 16px; padding: 10px 4px; color: rgba(255, 255, 255, .8); }
	.cw-nav-cta { display: inline-flex; margin-top: 28px; }
	body.cw-nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.cw-footer { background: var(--cw-navy); color: rgba(255, 255, 255, .78); font-size: 14px; }
.cw-footer-inner {
	max-width: var(--cw-max); margin: 0 auto; padding: 64px 24px 40px;
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1.4fr; gap: 40px;
}
.cw-footer .cw-logo-name { font-size: 34px; }
.cw-footer .cw-logo-mark { width: 52px; height: 52px; }
.cw-footer-title { font-family: var(--cw-body); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--cw-gold); margin: 0 0 14px; }
.cw-footer-menu { list-style: none; margin: 0; padding: 0; }
.cw-footer-menu li { margin: 0 0 6px; }
.cw-footer-menu a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.cw-footer-menu a:hover { color: var(--cw-gold); }
.cw-footer-company p { margin: 0; line-height: 1.7; }
.cw-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cw-social a {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
	color: var(--cw-white); font-size: 18px; border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, color .2s, border-color .2s;
}
.cw-social a:hover { background: var(--cw-gold); border-color: var(--cw-gold); color: var(--cw-navy); }
.cw-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.cw-footer-bottom p { max-width: var(--cw-max); margin: 0 auto; padding: 20px 24px; font-size: 13px; color: rgba(255, 255, 255, .6); }

@media (max-width: 1024px) {
	.cw-footer-inner { grid-template-columns: 1fr 1fr 1fr; }
	.cw-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.cw-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 48px; }
	.cw-footer-company { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Non-Elementor pages (blog, posts, search, 404)
   -------------------------------------------------------------------------- */
.cw-container { max-width: var(--cw-max); margin: 0 auto; padding: 0 24px; }
.cw-container--narrow { max-width: 820px; }
.cw-section { padding: 64px 0 88px; }
.cw-page-head { background: var(--cw-navy) radial-gradient(circle at 85% 0%, rgba(217, 169, 74, .18), transparent 45%); color: var(--cw-white); padding: 72px 0 64px; }
.cw-page-head h1 { font-size: clamp(36px, 5vw, 60px); margin: 0 0 12px; letter-spacing: -.01em; }
.cw-page-intro { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 640px; }
.cw-page-intro p { margin: 0; }
.cw-eyebrow { color: var(--cw-gold); font-weight: 700; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; margin: 0 0 14px; }
.cw-page-head--post .cw-post-meta { margin-bottom: 18px; }
.cw-page-head--post .cw-post-meta time { color: rgba(255, 255, 255, .7); }
.cw-post-hero { margin-top: -36px; }
.cw-post-hero img { border-radius: var(--cw-radius); display: block; width: 100%; }
.cw-page-head--404 { min-height: 70vh; display: flex; align-items: center; }

.cw-prose { font-size: 18px; line-height: 1.75; }
.cw-prose h2 { font-size: 32px; margin: 1.6em 0 .5em; color: var(--cw-navy); }
.cw-prose h3 { font-size: 24px; margin: 1.4em 0 .5em; color: var(--cw-navy); }
.cw-prose a { color: var(--cw-gold-dark); }
.cw-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--cw-gold); font-family: var(--cw-head); font-size: 24px; color: var(--cw-navy); }

.cw-post-nav { padding-bottom: 80px; }
.cw-post-nav .nav-links { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #E2E5E8; padding-top: 28px; }
.cw-post-nav a { text-decoration: none; font-family: var(--cw-head); font-weight: 600; font-size: 18px; color: var(--cw-navy); }
.cw-post-nav a span { display: block; font-family: var(--cw-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cw-gold-dark); margin-bottom: 4px; }

.pagination .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--cw-light); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--cw-navy); color: var(--cw-white); }

/* --------------------------------------------------------------------------
   News cards ([creswen_latest_posts] + blog)
   -------------------------------------------------------------------------- */
.cw-news-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cw-news-grid.cw-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cw-news-grid.cw-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cw-news-card {
	background: var(--cw-white); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
	box-shadow: 0 6px 24px rgba(7, 21, 33, .08); transition: transform .25s, box-shadow .25s;
}
.cw-news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(7, 21, 33, .14); }
.cw-news-thumb { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: var(--cw-deep); }
.cw-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.cw-news-card:hover .cw-news-thumb img { transform: scale(1.05); }
.cw-news-thumb-fallback { display: flex; height: 100%; align-items: center; justify-content: center; }
.cw-news-thumb-fallback .cw-logo-mark { width: 54px; height: 54px; }
.cw-news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.cw-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--cw-muted); }
.cw-post-cat { color: var(--cw-gold-dark); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.cw-page-head .cw-post-cat { color: var(--cw-gold); }
.cw-news-title { font-size: 17px; line-height: 1.3; margin: 8px 0 12px; color: var(--cw-navy); }
.cw-news-title a { text-decoration: none; }
.cw-news-title a:hover { color: var(--cw-gold-dark); }
.cw-readmore { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--cw-navy); text-decoration: none; letter-spacing: .04em; }
.cw-readmore:hover { color: var(--cw-gold-dark); }
.cw-empty { color: var(--cw-muted); }

@media (max-width: 1024px) { .cw-news-grid, .cw-news-grid.cw-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cw-news-grid, .cw-news-grid.cw-cols-2, .cw-news-grid.cw-cols-4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Contact form ([creswen_contact_form])
   -------------------------------------------------------------------------- */
.cw-form { display: grid; gap: 18px; }
.cw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cw-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cw-navy); }
.cw-form input, .cw-form select, .cw-form textarea {
	width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--cw-text);
	padding: 13px 16px; border: 1px solid #D6DBE0; border-radius: 8px; background: var(--cw-white);
	transition: border-color .2s, box-shadow .2s;
}
.cw-form input:focus, .cw-form select:focus, .cw-form textarea:focus { outline: none; border-color: var(--cw-gold); box-shadow: 0 0 0 3px rgba(217, 169, 74, .25); }
.cw-form .cw-btn { justify-self: start; border: 0; }
.cw-form-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }
.cw-form-notice--ok { background: #E3F6EE; color: #0A6B4A; }
.cw-form-notice--error { background: #FDE8EB; color: #A3142B; }
@media (max-width: 640px) { .cw-form-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Helper classes used inside Elementor (add via Advanced → CSS Classes,
   or as <span class="…"> inside a Heading widget's title)
   -------------------------------------------------------------------------- */
.cw-gold { color: var(--e-global-color-accent, var(--cw-gold)); }
.cw-kr { color: var(--e-global-color-kentradio, var(--cw-kentradio)); }
.cw-lr { color: var(--e-global-color-londonradio, var(--cw-londonradio)); }
.cw-sr { color: var(--e-global-color-sussexradio, var(--cw-sussexradio)); }
.cw-kp { color: var(--e-global-color-kentpodcast, var(--cw-kentpodcast)); }

/* Section title with gold rules either side: add class "cw-lined" to a Heading widget */
.cw-lined .elementor-heading-title::before,
.cw-lined .elementor-heading-title::after { content: ""; display: inline-block; vertical-align: middle; width: 34px; height: 2px; margin: 0 18px 0.12em; background: var(--e-global-color-accent, var(--cw-gold)); }
@media (max-width: 480px) {
	.cw-lined .elementor-heading-title::before,
	.cw-lined .elementor-heading-title::after { width: 18px; margin: 0 10px 0.12em; }
}

/* Lift cards on hover: add class "cw-card-hover" to a Container */
.cw-card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.cw-card-hover:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(7, 21, 33, .14) !important; }

/* Brand cards zoom their background slightly */
.cw-brand-card { overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.cw-brand-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(7, 21, 33, .3); }

/* Arrow buttons nudge their icon */
.elementor-button .elementor-button-icon { transition: transform .2s; }
.elementor-button:hover .elementor-button-icon { transform: translateX(3px); }

/* Thin vertical dividers between children of a row Container: add "cw-dividers" */
.cw-dividers > .e-con-inner > .e-con + .e-con,
.cw-dividers > .e-con + .e-con { border-left: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 767px) {
	.cw-dividers > .e-con-inner > .e-con + .e-con,
	.cw-dividers > .e-con + .e-con { border-left: 0; }
}

/* Radio player block */
.cw-player { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cw-player audio { flex: 1; min-width: 240px; height: 48px; }
.cw-onair { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.cw-onair::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #E91E3D; box-shadow: 0 0 0 0 rgba(233, 30, 61, .6); animation: cw-pulse 1.6s infinite; }
@keyframes cw-pulse { 70% { box-shadow: 0 0 0 10px rgba(233, 30, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 30, 61, 0); } }

/* Schedule list */
.cw-schedule { list-style: none; margin: 0; padding: 0; }
.cw-schedule li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(7, 21, 33, .1); }
.cw-schedule time { font-family: var(--cw-head); font-weight: 700; color: var(--cw-navy); }
.cw-schedule strong { display: block; color: var(--cw-navy); }
.cw-schedule span { color: var(--cw-muted); font-size: 14px; }

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