/**
 * Homepage Section 7 — Dark Footer (Follow Studio M + Nav + Legal)
 * Primary wrapper selector: .sm-section--home-7
 *
 * Matches studiom.ai section-theme="black-bold" footer section (id: 693acfe704956c52536a2980).
 * Content: "Follow Studio M" heading (center) + Instagram icon (center) +
 *          nav links (right, bold white) + legal text (left, small white).
 * Layout: 3-column flex on desktop; stacked on mobile (Follow → nav → legal).
 * Background: #111111 (Squarespace "black-bold" theme equivalent).
 *
 * SCOPE: This CSS is ONLY for homepage Section 7.
 * All selectors are scoped under .sm-section--home-7.
 * No global element selectors without the wrapper prefix.
 *
 * @package StudioM_Child
 */

/* ========================================================================
   Section Outer Container — dark background, full-bleed
   ======================================================================== */

.sm-section--home-7 {
	background-color: #111111;
	padding-top: 72px;
	padding-bottom: 72px;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

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

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

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

/* ========================================================================
   Inner Container — max-width 1200px, matches Sections 2–6 container width
   ======================================================================== */

.sm-section--home-7 .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-7 .sm-container {
		padding-left: 40px !important;
		padding-right: 40px !important;
	}
}

/* ========================================================================
   Inner Flex Layout — 3 columns on desktop, stacked on mobile
   Column order on desktop: [legal LEFT] [follow CENTER] [nav RIGHT]
   Column order on mobile: [follow] → [nav] → [legal]
   Matches studiom.ai grid: legal cols 2–5, follow cols 11–17, nav cols 20–26
   ======================================================================== */

.sm-section--home-7 .sm-footer7__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

@media (min-width: 768px) {
	.sm-section--home-7 .sm-footer7__inner {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 24px;
	}
}

/* ========================================================================
   LEFT Column — Legal / Company Info
   On desktop: ~20% width, left-aligned, small white text
   On mobile: centered, last in DOM order but first visually via order
   ======================================================================== */

.sm-section--home-7 .sm-footer7__legal {
	order: 3; /* mobile: comes last visually */
	text-align: center;
}

@media (min-width: 768px) {
	.sm-section--home-7 .sm-footer7__legal {
		order: 1; /* desktop: leftmost column */
		text-align: left;
		flex: 0 0 auto;
		width: 200px;
	}
}

.sm-section--home-7 .sm-footer7__legal-text {
	font-family: 'Chivo', sans-serif;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.8;
	color: #ffffff;
	margin: 0 0 16px 0;
	padding: 0;
}

.sm-section--home-7 .sm-footer7__legal-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0;
}

@media (min-width: 768px) {
	.sm-section--home-7 .sm-footer7__legal-links {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
}

.sm-section--home-7 .sm-footer7__legal-links li {
	margin: 0;
	padding: 0;
}

.sm-section--home-7 .sm-footer7__legal-links a {
	font-family: 'Chivo', sans-serif;
	font-size: 12px;
	font-weight: 300;
	line-height: 2;
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: opacity 0.2s ease;
	padding-right: 12px;
}

@media (min-width: 768px) {
	.sm-section--home-7 .sm-footer7__legal-links a {
		padding-right: 0;
	}
}

.sm-section--home-7 .sm-footer7__legal-links a:hover,
.sm-section--home-7 .sm-footer7__legal-links a:focus {
	opacity: 0.7;
}

.sm-section--home-7 .sm-footer7__legal-links a:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
	opacity: 1;
}

/* ========================================================================
   CENTER Column — "Follow Studio M" heading + Instagram icon
   On desktop: centered column, ~200px wide, centered text
   On mobile: first in visual order, centered
   ======================================================================== */

.sm-section--home-7 .sm-footer7__follow {
	order: 1; /* mobile: first */
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

@media (min-width: 768px) {
	.sm-section--home-7 .sm-footer7__follow {
		order: 2; /* desktop: center column */
		flex: 0 0 auto;
		width: 220px;
	}
}

.sm-section--home-7 .sm-footer7__heading {
	font-family: 'Chivo', sans-serif;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: #ffffff;
	margin: 0;
	padding: 0;
	text-align: center;
}

@media (min-width: 768px) {
	.sm-section--home-7 .sm-footer7__heading {
		font-size: 24px;
	}
}

/* Instagram icon link — no border (matches studiom.ai social-icons-style-regular) */
.sm-section--home-7 .sm-footer7__icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.sm-section--home-7 .sm-footer7__icon-link:hover,
.sm-section--home-7 .sm-footer7__icon-link:focus {
	opacity: 0.7;
	outline: none;
}

.sm-section--home-7 .sm-footer7__icon-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
	opacity: 1;
}

.sm-section--home-7 .sm-footer7__icon {
	display: block;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}

/* ========================================================================
   RIGHT Column — Navigation Links
   On desktop: right-aligned column, bold white links, right-justified
   On mobile: second in visual order, centered
   Matches studiom.ai: text-align:right, bold, white
   ======================================================================== */

.sm-section--home-7 .sm-footer7__nav {
	order: 2; /* mobile: second (after follow, before legal) */
}

@media (min-width: 768px) {
	.sm-section--home-7 .sm-footer7__nav {
		order: 3; /* desktop: rightmost column */
		flex: 0 0 auto;
		width: 200px;
	}
}

.sm-section--home-7 .sm-footer7__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

@media (min-width: 768px) {
	.sm-section--home-7 .sm-footer7__nav-list {
		align-items: flex-end;
		gap: 2px;
	}
}

.sm-section--home-7 .sm-footer7__nav-list li {
	margin: 0;
	padding: 0;
}

.sm-section--home-7 .sm-footer7__nav-list a {
	display: inline-block;
	font-family: 'Chivo', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.8;
	letter-spacing: 0.01em;
	color: #ffffff;
	text-decoration: none;
	text-align: right;
	transition: opacity 0.2s ease;
}

.sm-section--home-7 .sm-footer7__nav-list a:hover,
.sm-section--home-7 .sm-footer7__nav-list a:focus {
	opacity: 0.7;
	outline: none;
}

.sm-section--home-7 .sm-footer7__nav-list a:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
	opacity: 1;
}

/* Strong tags inside nav links (already bold, but ensure consistent weight) */
.sm-section--home-7 .sm-footer7__nav-list a strong {
	font-weight: 700;
}

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

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