/*
Theme Name:   Crew Connect (Hello Elementor child)
Theme URI:    https://www.crew-connect.co.uk
Description:  Crew Connect brand theme: self-hosted Barlow type, slate/sea/tape colours, styled Hello header and footer. Use with the Crew Connect plugin and Elementor.
Author:       Crew Connect
Template:     hello-elementor
Version:      1.3.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  crew-connect-theme
*/

/* Fonts are declared in assets/css/fonts.css. Tokens live in the plugin CSS (:root --cc-*). */

:root {
	--cc-ink: #262F3D;
	--cc-ink-2: #3E4A5C;
	--cc-muted: #5F6B7D;
	--cc-line: #D9DEE5;
	--cc-mist: #EEF1F4;
	--cc-sea: #0A6C74;
	--cc-sea-dark: #08545A;
	--cc-tape: #FFC94A;
	--cc-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--cc-display: "Barlow Condensed", "Arial Narrow", "Barlow", system-ui, sans-serif;
	--cc-max: 1200px;
	--cc-gutter: clamp(20px, 4vw, 40px);
}

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--cc-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--cc-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--cc-sea); text-underline-offset: 3px; }
a:hover { color: var(--cc-sea-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cc-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.01em;
	color: var(--cc-ink);
	margin: 0 0 .5em;
}
h1 { font-size: 44px; font-weight: 800; line-height: 1.05; }
h2 { font-size: 32px; }
h3 { font-size: 24px; line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--cc-tape); color: var(--cc-ink); font-weight: 600; }

/* ---------- Layout (non-Elementor pages) ---------- */
.site-main,
.site-header .header-inner,
.site-footer .footer-inner {
	width: 100%;
	max-width: calc(var(--cc-max) + 2 * var(--cc-gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--cc-gutter);
	padding-right: var(--cc-gutter);
	box-sizing: border-box;
}
.site-main { padding-top: 40px; padding-bottom: 64px; }
.page-header .entry-title { margin: 0 0 28px; font-size: clamp(40px, 5vw, 56px); }
.home .page-header { display: none; }
.home .site-main { padding-top: 0; }
/* Elementor full-width pages manage their own spacing. */
.elementor-page .site-main { max-width: none; padding: 0; }

/* ---------- Header ---------- */
.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	max-width: calc(var(--cc-max) + 2 * var(--cc-gutter));
	margin: 0 auto;
	padding: 12px var(--cc-gutter);
	box-sizing: border-box;
	border-bottom: 1px solid var(--cc-line);
}
.site-header.dynamic-header { max-width: none; display: block; }
.site-header .header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-header .site-title, .site-header .site-title a {
	font-family: var(--cc-display);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.01em;
	color: var(--cc-ink);
	text-decoration: none;
	margin: 0;
}
.site-header .site-description { margin: 4px 0 0; font-size: 14px; color: var(--cc-muted); }
.site-header .custom-logo { display: block; height: 52px; width: auto; max-width: 100%; }
.site-header .custom-logo-link { display: block; }
@media (max-width: 640px) { .site-header .custom-logo { height: 42px; } }
.site-navigation ul.menu, .site-navigation ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-navigation li { margin: 0; position: relative; }
.site-navigation a {
	display: inline-block;
	padding: 8px 10px;
	font-size: 16px;
	font-weight: 600;
	color: var(--cc-ink);
	text-decoration: none;
	border-radius: 2px;
}
.site-navigation a:hover { color: var(--cc-sea); }
.site-navigation .current-menu-item > a, .site-navigation .current_page_item > a { color: var(--cc-sea); }
.site-navigation .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 200px; padding: 8px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--cc-line); border-radius: 6px; box-shadow: 0 10px 30px -12px rgba(38,47,61,.35); }
.site-navigation li:hover > .sub-menu, .site-navigation li:focus-within > .sub-menu { display: flex; }
.site-navigation .cc-menu-join > a { margin-left: 6px; }
/* Hello's mobile menu toggle (dynamic header) */
.site-navigation-toggle-holder .site-navigation-toggle { color: var(--cc-ink); }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: 0;
	padding: 32px var(--cc-gutter) 8px;
	color: #D9DEE5;
	background: var(--cc-ink);
	font-size: 15px;
}
.site-footer:not(.dynamic-footer) { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: #fff; }
.site-footer .site-navigation a { color: #fff; font-weight: 500; }
.site-footer .site-navigation a:hover { color: var(--cc-tape); }
.cc-footer-note { max-width: var(--cc-max); margin: 0 auto; padding: 0 var(--cc-gutter) 32px; font-size: 14px; color: #9AA6B6; background: var(--cc-ink); }
.cc-footer-note p { margin: 0; }
.cc-footer-wrap { background: var(--cc-ink); }

/* ---------- Blocks / Elementor polish ---------- */
.elementor-widget-text-editor { font-size: 17px; line-height: 1.6; }
.elementor-button { font-family: var(--cc-font); font-weight: 600; border-radius: 2px; }
.wp-block-button__link { border-radius: 2px; background: var(--cc-sea); font-weight: 600; }

/* Home page section edges when built with blocks */
.home .cc-home { padding-bottom: 8px; }

/* ---------- Elementor home template (elementor/crew-connect-home.json) ---------- */
.cc-el-display .elementor-heading-title { font-family: var(--cc-display); font-size: clamp(46px, 6.4vw, 84px); font-weight: 800; line-height: .95; letter-spacing: -.01em; text-wrap: balance; }
.cc-el-lede, .cc-el-lede p { font-size: 20px; line-height: 1.55; color: var(--cc-ink-2); max-width: 54ch; }
.cc-el-actions .cc-actions, .cc-el-actions .elementor-shortcode { display: flex; flex-wrap: wrap; gap: 12px; }
.cc-el-h2 .elementor-heading-title { font-family: var(--cc-display); font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; line-height: 1.05; }
.cc-el-offer { border-top: 1px solid var(--cc-line); }
.cc-el-offer-items { border-top: 0; }
.cc-el-item-title { padding-top: 20px; border-top: 2px solid var(--cc-ink); margin-bottom: 4px !important; }
.cc-el-item-title .elementor-heading-title { font-family: var(--cc-display); font-size: 26px; font-weight: 700; }
.cc-el-item-text p { font-size: 17px; line-height: 1.6; color: var(--cc-ink-2); max-width: 52ch; }
.cc-el-band-text p { font-size: 18px; line-height: 1.6; max-width: 62ch; }
.cc-el-btn-secondary .elementor-button { color: var(--cc-ink); background: transparent; border: 1px solid var(--cc-ink); }
.cc-el-btn-secondary .elementor-button:hover { color: #fff; background: var(--cc-ink); }
.cc-el-hero .cc-callsheet { box-shadow: 0 10px 30px -12px rgba(38,47,61,.35); }

/* ---------- Footer v1.2: logo, policy links, managed-by line ---------- */
.cc-footer-note { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 40px; padding-top: 40px; padding-bottom: 40px; }
.cc-footer-logo { display: block; width: 126px; height: auto; flex: none; }
.cc-footer-text { flex: 1 1 320px; min-width: 0; }
.cc-footer-links ul { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 14px; padding: 0; list-style: none; }
.cc-footer-links a { font-size: 16px; font-weight: 600; color: #fff; text-decoration: none; }
.cc-footer-links a:hover { color: var(--cc-tape); text-decoration: underline; }
.cc-footer-links a:focus-visible { outline: 3px solid var(--cc-tape); outline-offset: 2px; }
.cc-footer-note .cc-footer-managed { margin: 0 0 6px; font-size: 15px; color: #D9DEE5; }
.cc-footer-note .cc-footer-legal { margin: 0; font-size: 14px; color: #B8C0CB; }
.site-footer { padding-bottom: 0; }
.site-footer:empty, .site-footer .footer-inner:empty { display: none; }

/* ---------- Header v1.2.1: logo, tagline beside it, menu on the right, one row ---------- */
.site-header, .site-header .header-inner { align-items: center; flex-wrap: nowrap; gap: 16px 32px; }
.site-header .site-branding,
.site-header .header-inner .site-branding { flex: 0 1 auto; flex-direction: row; align-items: center; gap: 20px; min-width: 0; }
.site-header .site-branding .site-title { flex: none; }
.site-header .site-branding .site-description,
.site-header .header-inner .site-branding .site-description {
	margin: 0; padding-left: 20px; max-width: 26ch;
	font-size: 15px; line-height: 1.35; color: var(--cc-muted);
	border-left: 1px solid var(--cc-line);
}
.site-header .site-navigation { flex: 0 1 auto; margin-left: auto; }
.site-header .site-navigation ul.menu, .site-header .site-navigation ul { justify-content: flex-end; }
.site-header .site-navigation a { font-size: 16px; }
@media (max-width: 1100px) {
	.site-header .site-branding .site-description,
	.site-header .header-inner .site-branding .site-description { display: none; }
}
@media (max-width: 760px) {
	.site-header, .site-header .header-inner { flex-wrap: wrap; }
	.site-header .site-navigation ul.menu, .site-header .site-navigation ul { justify-content: flex-start; }
}

/* ---------- v1.2.2: keep header and footer link colours above Elementor's global link colour ---------- */
html body .site-header .site-navigation.site-navigation a { color: var(--cc-ink); text-decoration: none; }
html body .site-header .site-navigation.site-navigation a:hover, html body .site-header .site-navigation.site-navigation .current-menu-item > a, html body .site-header .site-navigation.site-navigation .current_page_item > a { color: var(--cc-sea); }
html body .site-header .site-navigation.site-navigation .cc-menu-join > a, html body .site-header .site-navigation.site-navigation .cc-menu-join > a:hover { color: #fff; }
html body .cc-footer-links.cc-footer-links a { color: #fff; text-decoration: none; }
html body .cc-footer-links.cc-footer-links a:hover, html body .cc-footer-links.cc-footer-links a:focus { color: var(--cc-tape); text-decoration: underline; }
html body .site-footer.site-footer a { color: #fff; }
html body .site-footer.site-footer a:hover { color: var(--cc-tape); }

/* ---------- v1.3.0: the footer is ours (template-parts), not Hello's ---------- */
.cc-footer-wrap { margin: 0; padding: 0; border: 0; }
.cc-footer-note .cc-footer-managed { max-width: 78ch; }
