/* SOS Site Chrome — wrappers for the Elementor-built header and footer */

.sos-sc-header,
.sos-sc-footer {
	/* Break out of any narrow flex/grid parent the theme may inject us into. */
	width: 100% !important;
	max-width: none !important;
	flex: 1 0 100% !important;
	grid-column: 1 / -1 !important;
	box-sizing: border-box;
}

.sos-sc-header {
	position: relative;
}

.sos-sc-header--sticky {
	position: sticky;
	top: 0;
	z-index: 999;
}

.sos-sc-footer {
	position: relative;
	clear: both;
}

/* Elementor containers inside our chrome should never be boxed narrow. */
.sos-sc-header .e-con,
.sos-sc-header .elementor-container,
.sos-sc-footer .e-con,
.sos-sc-footer .elementor-container {
	max-width: 100% !important;
	width: 100% !important;
}

/* The Elementor content inside should be free to span the full width. */
.sos-sc-header > .elementor,
.sos-sc-footer > .elementor {
	width: 100%;
}

/* Admin bar offset so a sticky header isn't hidden behind it. */
.admin-bar .sos-sc-header--sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .sos-sc-header--sticky {
		top: 46px;
	}
}

/* ============================================================
   SOS HEADER WIDGET
   ============================================================ */
.sos-h {
	background: #FBF7F0;
	color: #2B2926;
	width: 100%;
	border-bottom: 1px solid rgba(0,0,0,.06);
}
.sos-h__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 22px;
	display: flex;
	align-items: center;
	gap: 26px;
}
.sos-h__logo {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	color: inherit;
	flex: 0 0 auto;
}
.sos-h__logo img { display: block; width: auto; }
.sos-h__dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: #C9542C;
	flex: 0 0 auto;
}
.sos-h__wordmark { font-weight: 700; font-size: 1.22em; white-space: nowrap; }

.sos-h__nav {
	display: flex;
	align-items: center;
	gap: 22px;
	flex: 1 1 auto;
}
.sos-h__navitem { position: relative; }
.sos-h__navitem > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 0;
	text-decoration: none;
	color: inherit;
	font-weight: 600;
	white-space: nowrap;
	transition: color .15s ease;
}
.sos-h__caret { font-size: .7em; opacity: .6; }

/* mega panel */
.sos-h__mega {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	min-width: 620px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0,0,0,.14);
	padding: 24px 28px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .16s ease, transform .16s ease;
	z-index: 60;
}
.sos-h__navitem.has-mega:hover .sos-h__mega,
.sos-h__navitem.has-mega.is-open .sos-h__mega {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}
.sos-h__mega-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 22px 30px;
}
.sos-h__mega-title {
	display: block;
	font-size: .72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #9a8f80;
	margin-bottom: 10px;
}
.sos-h__mega ul { list-style: none; margin: 0; padding: 0; }
.sos-h__mega li { margin-bottom: 7px; }
.sos-h__mega li a {
	color: #2B2926;
	text-decoration: none;
	font-size: .95em;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.sos-h__mega li a:hover { text-decoration: underline; }
.sos-h__badge {
	font-style: normal;
	font-size: .62em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 2px 6px;
	border-radius: 4px;
}
.sos-h__badge--hot { background: #FBE3DA; color: #C9542C; }
.sos-h__badge--new { background: #DDF0EF; color: #2F7A79; }

/* actions */
.sos-h__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	margin-left: auto;
}
.sos-h__search input {
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid #e3dacb;
	background: #fff;
	font-size: .9em;
	min-width: 210px;
	box-sizing: border-box;
}
.sos-h__search input:focus { outline: none; border-color: #C9542C; }
.sos-h__subscribe {
	padding: 10px 22px;
	border-radius: 999px;
	background: #C9542C;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .15s ease, filter .15s ease;
}
.sos-h__subscribe:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* burger */
.sos-h__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px; height: 42px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
}
.sos-h__burger span {
	display: block;
	height: 2px;
	width: 22px;
	background: currentColor;
	margin: 0 auto;
	transition: transform .2s ease, opacity .2s ease;
}
.sos-h.is-open .sos-h__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sos-h.is-open .sos-h__burger span:nth-child(2) { opacity: 0; }
.sos-h.is-open .sos-h__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile */
@media (max-width: 900px) {
	.sos-h__inner { flex-wrap: wrap; gap: 12px; }
	.sos-h__burger { display: flex; }
	.sos-h__search { display: none; }
	.sos-h__nav {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		order: 5;
		border-top: 1px solid rgba(0,0,0,.07);
		padding-top: 6px;
	}
	.sos-h.is-open .sos-h__nav { display: flex; }
	.sos-h__navitem > a { padding: 13px 2px; justify-content: space-between; }
	.sos-h__mega {
		position: static;
		transform: none;
		min-width: 0;
		opacity: 1;
		visibility: visible;
		display: none;
		box-shadow: none;
		padding: 4px 0 14px 12px;
		background: transparent;
	}
	.sos-h__navitem.has-mega.is-open .sos-h__mega { display: block; transform: none; }
	.sos-h__navitem.has-mega:hover .sos-h__mega { display: none; }
	.sos-h__navitem.has-mega.is-open:hover .sos-h__mega { display: block; }
	.sos-h__mega-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ============================================================
   SOS FOOTER WIDGET
   ============================================================ */
.sos-f {
	background: #211D18;
	color: #CFC6BA;
	width: 100%;
}
.sos-f__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 22px 26px;
}
.sos-f a { color: inherit; text-decoration: none; transition: color .15s ease; }
.sos-f a:hover { color: #D98A3D; }

/* newsletter */
.sos-f__news {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 40px;
	margin-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.sos-f__news-heading {
	font-size: 1.9em;
	font-weight: 700;
	color: #fff;
	margin-bottom: 6px;
}
.sos-f__news-copy p { margin: 0; max-width: 44ch; opacity: .85; }
.sos-f__form { display: flex; gap: 10px; flex: 0 1 420px; }
.sos-f__form input {
	flex: 1 1 auto;
	padding: 14px 20px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.18);
	background: rgba(255,255,255,.06);
	color: #fff;
	font-size: .95em;
}
.sos-f__form input::placeholder { color: rgba(255,255,255,.45); }
.sos-f__form input:focus { outline: none; border-color: #D98A3D; }
.sos-f__button {
	padding: 14px 26px;
	border-radius: 999px;
	border: none;
	background: #D98A3D;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}
.sos-f__button:hover { filter: brightness(1.06); }

/* columns */
.sos-f__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 34px 40px;
	align-items: flex-start;
}
.sos-f__col {
	flex: 1 1 160px;
	min-width: 0;
}
.sos-f__col--book {
	flex: 1 1 250px;
}
.sos-f__title {
	display: block;
	font-size: .72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: #D98A3D;
	margin-bottom: 14px;
}
.sos-f__col ul { list-style: none; margin: 0; padding: 0; }
.sos-f__col li { margin-bottom: 10px; }
.sos-f__col--book a { display: flex; flex-direction: column; }
.sos-f__col--book a span { font-weight: 600; color: #fff; }
.sos-f__col--book a em {
	font-style: normal;
	font-size: .8em;
	opacity: .6;
}

/* socials */
.sos-f__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 42px;
}
.sos-f__socials a {
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.16);
	font-size: .88em;
	font-weight: 600;
}
.sos-f__socials a:hover { border-color: #D98A3D; }

/* bottom bar */
.sos-f__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,.1);
	font-size: .82em;
	opacity: .7;
}

@media (max-width: 780px) {
	.sos-f__grid { gap: 26px 24px; }
	.sos-f__col { flex: 1 1 140px; }
	.sos-f__col--book { flex: 1 1 100%; }
	.sos-f__news { flex-direction: column; align-items: flex-start; }
	.sos-f__form { flex: 1 1 100%; width: 100%; }
	.sos-f__bottom { flex-direction: column; }
}

/* ---------- hide on scroll down, reveal on scroll up ---------- */
.sos-sc-header--sticky {
	transition: transform .28s ease;
	will-change: transform;
}
.sos-sc-header--sticky.is-hidden {
	transform: translateY(-100%);
}

/* Never slide away while the mobile drawer is open. */
.sos-sc-header--sticky.is-hidden .sos-h.is-open {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.sos-sc-header--sticky {
		transition: none;
	}
}

/* ---------- transparent at top, solid once scrolled ---------- */
.sos-h {
	transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* Transparent state: sits over the hero with no bar at all. */
.sos-h--transparent:not(.is-scrolled) {
	background: transparent !important;
	border-bottom-color: transparent;
	box-shadow: none;
}

/* Make the wordmark and search readable against a photo. */
.sos-h--transparent:not(.is-scrolled) .sos-h__search input {
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .35);
	color: #fff;
}
.sos-h--transparent:not(.is-scrolled) .sos-h__search input::placeholder {
	color: rgba(255, 255, 255, .75);
}
.sos-h--transparent:not(.is-scrolled) .sos-h__burger span {
	background: currentColor;
}

/* Scrolled state: solid bar drops in. */
.sos-h--shadow.is-scrolled {
	box-shadow: 0 2px 18px rgba(0, 0, 0, .10);
}

/* On mobile the drawer needs a solid backdrop even at the top,
   otherwise the open menu is unreadable over the hero. */
@media (max-width: 900px) {
	.sos-h--transparent.is-open {
		background: var(--sos-h-solid, #FBF7F0) !important;
		color: #2B2926 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sos-h {
		transition: none;
	}
}

/* ============================================================
   v1.5.0 — MOBILE FIXES (Android / narrow viewports)
   The chrome was being boxed inside a padded parent container,
   which produced side gutters on the footer and forced the
   header to wrap onto two rows.
   ============================================================ */

/* --- 1. Full-bleed: break out of any padded/centred parent --- */
.sos-sc-header,
.sos-sc-footer {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	border-radius: 0 !important;
	box-sizing: border-box;
}

/* Elementor / theme containers inside our chrome must not add
   their own padding, margin or rounding — our inner wrappers
   already handle spacing. */
.sos-sc-header .e-con,
.sos-sc-header .e-con-inner,
.sos-sc-header .elementor-container,
.sos-sc-header .elementor-widget-container,
.sos-sc-footer .e-con,
.sos-sc-footer .e-con-inner,
.sos-sc-footer .elementor-container,
.sos-sc-footer .elementor-widget-container {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	border-radius: 0 !important;
}

/* The full-bleed trick can expose a hairline horizontal scroll
   on some Android browsers. */
html {
	overflow-x: hidden;
}

/* --- 2. Header must stay on ONE row on small screens --- */
@media (max-width: 900px) {
	.sos-h__inner {
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
	}

	/* logo shrinks rather than forcing a wrap */
	.sos-h__logo {
		flex: 0 1 auto;
		min-width: 0;
	}
	.sos-h__logo img {
		max-height: 38px;
		width: auto;
	}
	.sos-h__wordmark {
		font-size: 1.05em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* actions stay pinned to the right, on the same row */
	.sos-h__actions {
		flex: 0 0 auto;
		margin-left: auto;
		gap: 8px;
	}

	/* the drawer is the only thing allowed onto its own row */
	.sos-h__nav {
		flex: 1 1 100%;
		order: 5;
	}
}

@media (max-width: 600px) {
	.sos-h__inner {
		padding: 10px 14px;
	}
	.sos-h__logo img {
		max-height: 34px;
	}
	.sos-h__subscribe {
		padding: 8px 15px;
		font-size: .85em;
	}
	.sos-h__burger {
		width: 38px;
		height: 38px;
	}
}

/* Very narrow phones: drop Subscribe rather than wrap the bar. */
@media (max-width: 380px) {
	.sos-h__subscribe {
		display: none;
	}
}

/* --- 3. Footer breathing room on mobile --- */
@media (max-width: 600px) {
	.sos-f__inner {
		padding: 40px 18px 22px;
	}
	.sos-f__news {
		padding-bottom: 30px;
		margin-bottom: 30px;
	}
	.sos-f__news-heading {
		font-size: 1.6em;
	}
	.sos-f__form {
		flex-direction: column;
	}
	.sos-f__form input,
	.sos-f__button {
		width: 100%;
	}
}
