/* ============================================================
   Résineo Guides — common styles
   Loaded on blog_id = 2 (entire /guides/ subsite).
   Provides design tokens, base resets, top bar and header.
   ============================================================ */

/* ─── Design tokens ─────────────────────────────────────── */
:root {
	--c-brown:        #C9BBA0;
	--c-brown-dark:   #846F4A;
	--c-brown-light:  #B8A47A;
	--c-sand:         #E8E0D4;
	--c-sand-light:   #F7F7F7;
	--c-cream:        #FAF8F5;
	--c-body:         #71797D;
	--c-heading:      #333333;
	--c-dark:         #2D2D2D;
	--c-btn:          #4E4E4E;
	--c-border:       #e5e5e5;
	--c-gold:         #B8964E;

	--font-sans:      'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--font-heading:   'Titillium Web', sans-serif;
	--font-serif:     'Noto Serif', Georgia, serif;

	--container:      1280px;
	--pad-x:          1.5rem;
	--pad-x-lg:       2rem;
}

/* ─── Headings (global on /guides/) ─────────────────────── */
.guide-topbar h1, .guide-topbar h2, .guide-topbar h3, .guide-topbar h4, .guide-topbar h5, .guide-topbar h6,
.guide-header h1, .guide-header h2, .guide-header h3, .guide-header h4, .guide-header h5, .guide-header h6 {
	font-family: var(--font-serif);
	font-style: italic;
	color: var(--c-brown);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	margin: 0;
}

/* ─── Container ─────────────────────────────────────────── */
/* Override OceanWP's global .container { width: 1200px; max-width: 90% }
   which caps content at ~1000px on viewports < 1280px and causes
   horizontal overflow on mobile. */
.guide-topbar .container,
.guide-header .container,
.guide-breadcrumb .container,
.guide-main .container {
	width: 100% !important;
	max-width: var(--container) !important;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--pad-x);
	padding-right: var(--pad-x);
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	.guide-topbar .container,
	.guide-header .container,
	.guide-breadcrumb .container,
	.guide-main .container {
		padding-left: var(--pad-x-lg);
		padding-right: var(--pad-x-lg);
	}
}

/* ─── Top bar ───────────────────────────────────────────── */
.guide-topbar {
	background: #4E4E4E;
	color: #fff;
	font-family: var(--font-sans);
}
.guide-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	font-size: 12px;
}
.guide-topbar__left {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.guide-topbar__socials {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.guide-topbar__social,
.guide-topbar__contact-link {
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	text-decoration: none;
	transition: color 0.2s ease;
}
.guide-topbar__social:hover,
.guide-topbar__contact-link:hover {
	color: #8B8B8B;
}
.guide-topbar__social svg { width: 14px; height: 14px; }
.guide-topbar__contact-link svg { width: 12px; height: 12px; }
.guide-topbar__contact-link--phone,
.guide-topbar__contact-link--mail { display: none; }
@media (min-width: 640px) {
	.guide-topbar__contact-link--phone { display: inline-flex; }
}
@media (min-width: 768px) {
	.guide-topbar__contact-link--mail { display: inline-flex; }
}

.guide-topbar__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 4px 4px 4px 12px;
	border-radius: 100px;
	background: #fff;
	color: #4E4E4E;
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.3s ease;
}
.guide-topbar__cta:hover { background: var(--c-sand-light); }
.guide-topbar__cta-arrow {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #4E4E4E;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}
.guide-topbar__cta:hover .guide-topbar__cta-arrow {
	transform: translate(2px, -2px);
}
.guide-topbar__cta-arrow svg { width: 10px; height: 10px; }

/* ─── Header ────────────────────────────────────────────── */
.guide-header {
	background: #fff;
	border-bottom: 1px solid var(--c-sand);
}
.guide-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}
.guide-header__logo { display: block; line-height: 0; }
.guide-header__logo img { height: 45px; width: auto; display: block; }
.guide-header__nav {
	display: none;
	align-items: center;
	gap: 2rem;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-body);
	font-family: var(--font-sans);
}
.guide-header__nav ul.guide-header__menu {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 1024px) {
	.guide-header__nav { display: flex; }
}
.guide-header__link,
.guide-header__nav a {
	color: var(--c-body);
	text-decoration: none;
	transition: color 0.2s ease;
}
.guide-header__link:hover,
.guide-header__nav a:hover {
	color: var(--c-brown);
}
.guide-header__link--active,
.guide-header__nav .current-menu-item > a {
	color: var(--c-brown);
	border-bottom: 2px solid var(--c-brown);
	padding-bottom: 2px;
}

/* ─── Burger button (mobile only) ───────────────────────── */
.guide-header__burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 8px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--c-body);
}
.guide-header__burger-bar {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.guide-header__burger[aria-expanded="true"] .guide-header__burger-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.guide-header__burger[aria-expanded="true"] .guide-header__burger-bar:nth-child(2) {
	opacity: 0;
}
.guide-header__burger[aria-expanded="true"] .guide-header__burger-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 1024px) {
	.guide-header__burger { display: none; }
}

/* Mobile modal: when expanded, nav becomes a full-viewport overlay.
   The .guide-header__inner is raised to z-index 110 so the logo and the
   burger-turned-X remain visible/clickable on top of the modal. */
@media (max-width: 1023px) {
	.guide-header { position: relative; }
	.guide-header__inner { position: relative; z-index: 110; background: #fff; }

	.guide-header__nav--open {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: 0;
		background: #fff;
		z-index: 100;
		padding: 4rem 1.5rem 2rem; /* clear the pinned burger-X at top-right */
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.guide-header__nav--open .guide-header__menu {
		flex-direction: column;
		gap: 0;
		align-items: stretch;
	}
	.guide-header__nav--open .guide-header__menu li {
		border-bottom: 1px solid var(--c-sand-light);
		text-align: center;
	}
	.guide-header__nav--open .guide-header__menu li:last-child {
		border-bottom: 0;
	}
	.guide-header__nav--open .guide-header__menu a {
		display: block;
		padding: 1.25rem 1.5rem;
		font-size: 18px;
	}
}

/* Body scroll lock while the modal is open. Toggled by the header partial JS.
   The burger (now an X) is pinned to the viewport top-right so users can
   always close the modal regardless of how far they had scrolled. We don't
   try to pin the whole header — that runs into stacking-context issues
   between the header and its descendant nav that both use position:fixed. */
body.guide-menu-open { overflow: hidden; }
@media (max-width: 1023px) {
	body.guide-menu-open .guide-header__burger {
		position: fixed;
		top: 0.5rem;
		right: 1rem;
		z-index: 200;
		color: var(--c-dark);
	}
}

/* ─── Footer (mobile) — center logo, keep legal links on one line ──── */
@media (max-width: 1023px) {
	#footer-widgets .footer-widgets-inner,
	#footer-widgets .footer-box {
		text-align: center;
	}
	#footer-widgets .widget_media_image img {
		display: inline-block;
		margin: 0 auto;
	}
	#footer-widgets .textwidget p {
		font-size: 13px;
		white-space: nowrap;
		margin: 0.5rem 0 0;
	}
	#footer-bottom #copyright {
		text-align: center;
	}
}

/* ─── Mobile sizing bump (+10% on RS, contact, CTA) ────── */
@media (max-width: 1023px) {
	.guide-topbar__inner {
		height: 44px;
		font-size: 13px;
	}
	.guide-topbar__social svg { width: 16px; height: 16px; }
	.guide-topbar__contact-link svg { width: 13px; height: 13px; }
	.guide-topbar__cta {
		font-size: 11px;
		padding: 5px 5px 5px 14px;
	}
	.guide-topbar__cta-arrow { width: 22px; height: 22px; }
	.guide-topbar__cta-arrow svg { width: 11px; height: 11px; }
}
