/*
Theme Name: Seatply
Theme URI: https://seatply.gagadomains.com/
Author: Dendrite Corp
Description: Custom WordPress theme for Seatply — curved plywood seating components.
Version: 0.2.0
Text Domain: seatply
*/

/* ==========================================================================
   Brand tokens
   ========================================================================== */

:root {
	--sp-navy: #003144;
	--sp-accent: #003341;
	--sp-green: #97CE8B;
	--sp-text: #5F5F5F;
	--sp-bg: #FFFFFF;
	--sp-alt-bg: #F5F8F5;
	--sp-border: #EEF2EF;
	--sp-muted: #6b6b6b;
	--sp-heading-font: 'Montserrat', sans-serif;
	--sp-body-font: 'Poppins', sans-serif;
	--sp-max: 1280px;
	--sp-pad: 32px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::after, *::before {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--sp-body-font);
	color: var(--sp-text);
	background: var(--sp-bg);
	line-height: 1.6;
}

h1, h2, h3, h4, .sp-heading-font {
	font-family: var(--sp-heading-font);
	color: var(--sp-navy);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--sp-accent);
}

.sp-wrap {
	max-width: var(--sp-max);
	margin: 0 auto;
	padding: 0 var(--sp-pad);
}

/*
 * Classic themes (no theme.json) get every core/group's content wrapped in
 * .wp-block-group__inner-container, which breaks grid/flex parent-child
 * relationships (e.g. .sp-capability-grid sees 1 child instead of 6 cards).
 * display:contents makes the wrapper transparent to layout for the grid/flex
 * components only.
 */
.sp-capability-grid > .wp-block-group__inner-container,
.sp-product-grid-2 > .wp-block-group__inner-container,
.sp-product-grid-4 > .wp-block-group__inner-container,
.sp-team-grid > .wp-block-group__inner-container,
.sp-value-list > .wp-block-group__inner-container,
.sp-value-item > .wp-block-group__inner-container {
	display: contents;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	background: var(--sp-navy);
}

body.home .site-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	background: transparent;
}

.site-header .sp-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-top: 18px;
	padding-bottom: 18px;
}

.header-brand .custom-logo {
	max-height: 48px;
	width: auto;
}

.site-title-link {
	font-family: var(--sp-heading-font);
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: #fff;
	text-transform: uppercase;
}

.nav-menu {
	list-style: none;
	display: flex;
	gap: 12px 28px;
	align-items: center;
	flex-wrap: wrap;
}

.nav-menu a {
	text-decoration: none;
	color: #fff;
	font-family: var(--sp-heading-font);
	font-weight: 600;
	font-size: 14px;
}

.nav-menu a:hover {
	color: var(--sp-green);
}

/* Dropdown submenus */
.nav-menu li {
	position: relative;
}

.nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: -16px;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0, 49, 68, 0.14);
	list-style: none;
	padding: 10px 0;
	z-index: 50;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	display: block;
}

.nav-menu .sub-menu li {
	display: block;
}

.nav-menu .sub-menu a {
	display: block;
	color: var(--sp-navy);
	padding: 8px 18px;
	font-weight: 500;
}

.nav-menu .sub-menu a:hover {
	background: var(--sp-alt-bg);
	color: var(--sp-navy);
}

/* ==========================================================================
   Content shell
   ========================================================================== */

.site-main {
	min-height: 50vh;
}

.site-main .page-title {
	max-width: var(--sp-max);
	margin: 40px auto 20px;
	padding: 0 var(--sp-pad);
}

/* Generic content flow; design sections manage their own spacing */
.entry-content > * + * {
	margin-top: 0;
}

/* Constrain plain (non-section) content on generic pages */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > blockquote,
.entry-content > figure {
	max-width: var(--sp-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--sp-pad);
	padding-right: var(--sp-pad);
	margin-top: 1em;
}

/* Archive / search feeds */
.site-main article + article {
	margin-top: 24px;
}

.feed-pagination {
	max-width: var(--sp-max);
	margin: 32px auto;
	padding: 0 var(--sp-pad);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--sp-navy);
	color: #B9C7CC;
	font-size: 0.9rem;
	margin-top: 0;
}

.site-footer .sp-wrap {
	padding-top: 40px;
	padding-bottom: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.site-footer .nav-menu a {
	color: #D6E2E0;
	font-weight: 500;
}

.site-footer .nav-menu a:hover {
	color: var(--sp-green);
}

.footer-copy {
	color: #8FA5AD;
}

.not-found {
	padding: 80px 0;
	text-align: center;
}

.btn {
	display: inline-block;
	background: var(--sp-green);
	color: var(--sp-navy);
	font-family: var(--sp-heading-font);
	font-weight: 700;
	padding: 12px 24px;
	text-decoration: none;
	border-radius: 6px;
}

/* ==========================================================================
   Buttons (Gutenberg)
   ========================================================================== */

.sp-btn .wp-block-button__link,
a.sp-btn,
button.sp-btn {
	display: inline-block;
	font-family: var(--sp-heading-font);
	font-weight: 700;
	font-size: 15px;
	padding: 15px 28px;
	border-radius: 6px;
	text-decoration: none;
}

.sp-btn-primary .wp-block-button__link,
a.sp-btn-primary,
button.sp-btn-primary {
	background: var(--sp-green);
	color: var(--sp-navy);
	border: none;
}

.sp-btn-outline .wp-block-button__link,
a.sp-btn-outline {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
}

button.sp-btn {
	width: auto;
	align-self: flex-start;
	cursor: pointer;
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.sp-hero {
	position: relative;
	min-height: 640px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.sp-hero-media {
	position: absolute;
	inset: 0;
}

.sp-hero-media figure,
.sp-hero-media .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.sp-hero-media img,
.sp-hero-media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sp-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(0,49,68,0.92) 20%, rgba(0,49,68,0.55) 65%, rgba(0,49,68,0.35) 100%);
}

.sp-hero-inner {
	position: relative;
	max-width: 660px;
	padding: 100px 32px;
	margin-right: auto;
	width: 100%;
}

.sp-hero .sp-hero-inner {
	margin-left: calc(max((100% - var(--sp-max)) / 2, 0px));
}

.sp-hero-eyebrow {
	display: inline-block;
	background: rgba(151,206,139,0.18);
	border: 1px solid rgba(151,206,139,0.45);
	color: var(--sp-green);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 7px 14px;
	border-radius: 20px;
	margin-bottom: 22px;
}

.sp-hero-title {
	font-size: 52px;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 22px;
	font-weight: 800;
}

.sp-hero-sub {
	font-size: 17px;
	line-height: 1.7;
	color: #D6E2E0;
	margin: 0 0 36px;
	max-width: 56ch;
}

.sp-hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Interior page banner
   ========================================================================== */

.sp-page-banner {
	background: var(--sp-navy);
	padding: 64px 0 56px;
}

.sp-page-eyebrow {
	color: var(--sp-green);
	font-family: var(--sp-heading-font);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.sp-page-title {
	font-size: 40px;
	color: #fff;
	margin: 0;
	font-weight: 800;
}

/* ==========================================================================
   Section rhythm
   ========================================================================== */

.sp-section {
	padding: 88px 0;
}

.sp-section-alt {
	background: var(--sp-alt-bg);
}

.sp-section-navy {
	background: var(--sp-navy);
	padding: 80px 0;
	text-align: center;
}

.sp-section-navy h2 {
	color: #fff;
}

.sp-section-navy p {
	color: #B9C7CC;
}

.sp-eyebrow {
	color: var(--sp-green);
	font-family: var(--sp-heading-font);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.sp-section-head {
	max-width: 640px;
	margin: 0 auto 52px;
	text-align: center;
}

/* ==========================================================================
   Stat bar
   ========================================================================== */

.sp-stat-bar {
	border-bottom: 1px solid var(--sp-border);
}

.sp-stat-bar .sp-wrap {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding-top: 44px;
	padding-bottom: 44px;
}

.sp-stat {
	text-align: center;
	border-left: 1px solid var(--sp-border);
}

.sp-stat:first-child {
	border-left: none;
}

.sp-stat-num {
	font-family: var(--sp-heading-font);
	font-weight: 800;
	font-size: 38px;
	color: var(--sp-navy);
}

.sp-stat-label {
	font-size: 13.5px;
	margin-top: 4px;
}

/* ==========================================================================
   Two-column
   ========================================================================== */

.sp-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.sp-two-col img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	border-radius: 8px;
}

/* ==========================================================================
   Capability / production grid
   ========================================================================== */

.sp-capability-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: #E3EAE4;
	border: 1px solid #E3EAE4;
}

.sp-capability-card {
	background: #fff;
	padding: 32px;
	text-decoration: none;
	display: block;
}

.sp-capability-num {
	font-family: var(--sp-heading-font);
	font-weight: 800;
	font-size: 22px;
	color: #CFE4CA;
	margin-bottom: 14px;
}

.sp-capability-title {
	font-family: var(--sp-heading-font);
	font-weight: 700;
	font-size: 17px;
	color: var(--sp-navy);
	margin-bottom: 8px;
}

.sp-capability-desc {
	font-size: 14px;
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.sp-product-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.sp-product-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.sp-product-card {
	border: 1px solid var(--sp-border);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	display: block;
	background: #fff;
}

.sp-product-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.sp-product-card figure {
	margin: 0;
}

.sp-product-card figure a {
	display: block;
	width: 100%;
}

.sp-product-card-body {
	padding: 24px;
}

.sp-product-card-title {
	font-family: var(--sp-heading-font);
	font-weight: 700;
	font-size: 18px;
	color: var(--sp-navy);
	margin-bottom: 8px;
}

/* ==========================================================================
   Values list
   ========================================================================== */

.sp-value-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sp-value-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.sp-value-item p {
	margin: 0;
}

.sp-value-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sp-green);
	margin-top: 8px;
	flex-shrink: 0;
}

/* ==========================================================================
   Team
   ========================================================================== */

.sp-team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.sp-team-card {
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: 10px;
	padding: 26px 22px;
}

.sp-team-name {
	font-family: var(--sp-heading-font);
	font-weight: 700;
	font-size: 16px;
	color: var(--sp-navy);
}

h2.sp-team-name {
	font-size: 16px;
	margin-bottom: 8px;
}

.sp-team-title {
	font-size: 13px;
	color: var(--sp-green);
	font-weight: 600;
	margin: 4px 0 14px;
}

.sp-team-card a {
	display: block;
	font-size: 13px;
	color: var(--sp-text);
	text-decoration: none;
	margin-bottom: 4px;
}

.sp-team-bio {
	font-size: 13px;
	line-height: 1.7;
	margin: 14px 0 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.sp-form-grid {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.sp-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.sp-form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--sp-navy);
	margin-bottom: 7px;
}

.sp-form-input,
.sp-form-textarea {
	width: 100%;
	border: 1px solid #DCE3E0;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 14px;
	font-family: var(--sp-body-font);
	box-sizing: border-box;
}

.sp-info-card {
	background: var(--sp-alt-bg);
	border-radius: 10px;
	padding: 32px;
	margin-bottom: 24px;
}

.sp-info-card-label {
	font-family: var(--sp-heading-font);
	font-weight: 700;
	font-size: 14px;
	color: var(--sp-navy);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 18px;
}

.sp-info-card a {
	color: var(--sp-accent);
	text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.sp-two-col,
	.sp-product-grid-2 {
		grid-template-columns: 1fr;
	}
	.sp-stat-bar .sp-wrap,
	.sp-capability-grid,
	.sp-team-grid,
	.sp-product-grid-4,
	.sp-form-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.sp-hero-title {
		font-size: 36px;
	}
	.sp-stat-bar .sp-wrap,
	.sp-capability-grid,
	.sp-team-grid,
	.sp-product-grid-4,
	.sp-form-row {
		grid-template-columns: 1fr;
	}
	.sp-stat {
		border-left: none;
	}
}
