/**
 * Homepage Section 5 — Follow Studio M (Social + Navigation Pre-footer)
 * Primary wrapper selector: .sm-section--home-5
 *
 * Layout: Two-column — left: "Follow Studio M" label + Instagram icon;
 *         right: navigation links (Online Workshops, Incompany training, Contact)
 * Matches studiom.ai follow/pre-footer section (after .sm-section--home-4)
 *
 * SCOPE: This CSS is ONLY for homepage Section 5.
 * All selectors are scoped under .sm-section--home-5.
 * No global element selectors without the wrapper prefix.
 *
 * @package StudioM_Child
 */

/* ========================================================================
   Section Outer Container
   ======================================================================== */

.sm-section--home-5 {
	padding-top: 48px;
	padding-bottom: 48px;
	background-color: #ffffff;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.sm-section--home-5.has-global-padding,
.sm-section--home-5.is-layout-constrained {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

@media (min-width: 768px) {
	.sm-section--home-5 {
		padding-top: 64px;
		padding-bottom: 64px;
	}
}

/* ========================================================================
   Nested has-global-padding / is-layout-constrained neutralization
   Prevents TT5 from injecting unwanted horizontal padding inside the section
   ======================================================================== */

.sm-section--home-5 .has-global-padding,
.sm-section--home-5 .is-layout-constrained {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ========================================================================
   Inner Container — matches Sections 2–3 max-width (1200px)
   ======================================================================== */

.sm-section--home-5 .sm-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px !important;
	padding-right: 20px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

@media (min-width: 768px) {
	.sm-section--home-5 .sm-container {
		padding-left: 40px !important;
		padding-right: 40px !important;
	}
}

/* ========================================================================
   Top Border — subtle horizontal rule separating Section 5 from Section 4
   ======================================================================== */

.sm-section--home-5 .sm-container::before {
	content: '';
	display: block;
	height: 1px;
	background-color: #e8e8e8;
	margin-bottom: 48px;
}

@media (min-width: 768px) {
	.sm-section--home-5 .sm-container::before {
		margin-bottom: 64px;
	}
}

/* ========================================================================
   Two-Column Layout — social column (left) + nav column (right)
   On mobile: stacks vertically
   On desktop (≥768px): side-by-side, social ~30%, nav ~70%
   ======================================================================== */

.sm-section--home-5 .sm-follow__columns {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

@media (min-width: 768px) {
	.sm-section--home-5 .sm-follow__columns {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px;
	}
}

/* Social column — fixed width on desktop, full-width on mobile */
.sm-section--home-5 .wp-block-column.sm-follow__social {
	flex: 0 0 auto;
	width: 100%;
}

@media (min-width: 768px) {
	.sm-section--home-5 .wp-block-column.sm-follow__social {
		width: 220px;
		min-width: 200px;
	}
}

/* Nav column — takes remaining space */
.sm-section--home-5 .wp-block-column.sm-follow__nav {
	flex: 1 1 auto;
}

/* ========================================================================
   "F O L L O W   S T U D I O   M" Label
   Small-caps label, matches existing sm-about__label pattern
   ======================================================================== */

.sm-section--home-5 .sm-follow__label {
	font-family: 'Lexend Mega', sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.18em;
	color: #111111;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 20px;
	line-height: 1.4;
}

/* ========================================================================
   Instagram Icon Link
   32px square with 2px inset box-shadow border (no actual border property)
   Matches studiom.ai: box-shadow: 0 0 0 2px inset
   ======================================================================== */

.sm-section--home-5 .sm-follow__icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #111111;
	text-decoration: none;
	box-shadow: 0 0 0 2px #111111 inset;
	border-radius: 3px;
	transition: color 0.2s ease, box-shadow 0.2s ease;
}

.sm-section--home-5 .sm-follow__icon-link:hover,
.sm-section--home-5 .sm-follow__icon-link:focus {
	color: #444444;
	box-shadow: 0 0 0 2px #444444 inset;
	outline: none;
}

.sm-section--home-5 .sm-follow__icon-link:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 3px;
}

/* ========================================================================
   Instagram SVG Icon
   ======================================================================== */

.sm-section--home-5 .sm-follow__icon {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ========================================================================
   Navigation Link List
   Vertical list of page links — Chivo light, no list markers, left-aligned
   ======================================================================== */

.sm-section--home-5 .sm-follow__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sm-section--home-5 .sm-follow__nav-list li {
	margin: 0;
	padding: 0;
}

.sm-section--home-5 .sm-follow__nav-list a {
	display: inline-block;
	font-family: 'Chivo', sans-serif;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
	color: #111111;
	text-decoration: none;
	padding: 4px 0;
	transition: color 0.2s ease;
}

.sm-section--home-5 .sm-follow__nav-list a:hover,
.sm-section--home-5 .sm-follow__nav-list a:focus {
	color: #555555;
}

/* ========================================================================
   WordPress Block Spacing Normalization — scoped to Section 5 only
   ======================================================================== */

.sm-section--home-5 .wp-block-group {
	gap: 0;
}

.sm-section--home-5 .wp-block-columns {
	gap: 0;
	margin-bottom: 0;
}

.sm-section--home-5 .wp-block-heading {
	margin-top: 0;
}

.sm-section--home-5 p.sm-follow__label {
	margin-bottom: 20px;
}
