/**
 * Homepage Styles
 *
 * Styles specific to front-page.php. Loaded conditionally
 * via is_front_page() in functions.php.
 *
 * These were extracted from home.html. The WordPress override
 * hacks (.entry-content:has, .entry-content-wrap, .entry-hero-container)
 * are removed -- we ARE the theme now. No conflicts to override.
 *
 * @package Suncoast
 * @since   1.0.0
 */

/* ==========================================================================
   HOMEPAGE WRAPPER
   ========================================================================== */

/* The .skb-home wrapper is output by front-page.php */
.skb-home {
	overflow: clip;
}

/* ==========================================================================
   HERO -- Split layout: text left, image right
   ========================================================================== */

.skb-home .skb-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100dvh;
	background: var(--skb-dark);
	overflow: hidden;
}

.skb-home .skb-hero-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 80px 64px 80px 80px;
	color: var(--skb-white);
}

.skb-home .skb-hero-text h1 {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin-bottom: 24px;
	color: var(--skb-white);
}

.skb-home .skb-hero-text .skb-hero-desc {
	font-size: 18px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 36px;
	max-width: 52ch;
}

.skb-home .skb-hero-subtext {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 14px;
}

.skb-home .skb-hero-image {
	position: relative;
	overflow: hidden;
}

.skb-home .skb-hero-image .skb-img-placeholder {
	position: absolute;
	inset: 0;
	border-radius: 0;
	min-height: auto;
	background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%);
}

/* Badge row */
.skb-home .skb-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}

.skb-home .skb-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.7);
	padding: 8px 16px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */

.skb-home .skb-trust-bar {
	background: var(--skb-charcoal);
	padding: 20px 24px;
	border-bottom: 2px solid var(--skb-gold);
}

.skb-home .skb-trust-grid {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.skb-home .skb-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	justify-content: center;
}

.skb-home .skb-trust-item svg {
	flex-shrink: 0;
	color: var(--skb-gold);
}

/* ==========================================================================
   STEPS -- Horizontal timeline with connector line
   ========================================================================== */

.skb-home .skb-steps-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin-top: 56px;
	position: relative;
}

.skb-home .skb-steps-grid::before {
	content: '';
	position: absolute;
	top: 24px;
	left: 12.5%;
	right: 12.5%;
	height: 3px;
	background: var(--skb-gold-dark);
	z-index: 0;
}

.skb-home .skb-step {
	text-align: center;
	padding: 0 16px;
	position: relative;
	z-index: 1;
}

.skb-home .skb-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--skb-charcoal);
	color: var(--skb-white);
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
	border-radius: 50%;
	border: 4px solid var(--skb-off-white);
}

.skb-home .skb-step h3 {
	font-size: 19px;
	font-weight: 600;
	color: var(--skb-charcoal);
	margin: 16px 0 10px;
}

.skb-home .skb-step p {
	font-size: 15px;
	color: var(--skb-body);
	margin: 0 auto;
	max-width: 22ch;
}

/* ==========================================================================
   SERVICE CARDS -- Asymmetric grid: 2fr 1fr 1fr
   ========================================================================== */

.skb-home .skb-services-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 24px;
	margin-top: 56px;
}

.skb-home .skb-card--featured .skb-img-placeholder {
	height: 280px;
}

.skb-home .skb-card--small .skb-img-placeholder {
	height: 180px;
}

.skb-home .skb-card--featured h3 {
	font-size: 24px;
}

.skb-home .skb-card--small h3 {
	font-size: 20px;
}

/* Make the WHOLE service card clickable, not just the bottom link.
   The card-link's ::after stretches over the entire card; the visible
   link text still shows at the bottom. */
.skb-home .skb-services-grid .skb-card {
	position: relative;
	transition: transform 0.2s var(--skb-ease), box-shadow 0.2s var(--skb-ease);
}

.skb-home .skb-services-grid .skb-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.skb-home .skb-services-grid .skb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   WHY SUNCOAST -- Two-column layout
   ========================================================================== */

.skb-home .skb-why-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
}

.skb-home .skb-why-item {
	margin-bottom: 32px;
}

.skb-home .skb-why-item:last-child {
	margin-bottom: 0;
}

.skb-home .skb-why-item h3 {
	font-size: 18px;
	font-weight: 600;
	color: var(--skb-charcoal);
	margin-bottom: 10px;
}

.skb-home .skb-why-item p {
	font-size: 16px;
	color: var(--skb-body);
	line-height: 1.7;
}

.skb-home .skb-why-item a {
	color: var(--skb-gold-dark);
	font-weight: 500;
}

.skb-home .skb-why-image .skb-img-placeholder {
	height: 540px;
	border-radius: var(--skb-radius-lg);
}

/* ==========================================================================
   TIPS -- Shadow-only card bubbles
   ========================================================================== */

.skb-home .skb-tip {
	margin-bottom: 20px;
	padding: 24px 28px;
	background: var(--skb-white);
	border-radius: 12px;
	box-shadow: 0 2px 12px var(--skb-shadow),
	            0 8px 32px -8px var(--skb-shadow);
}

.skb-home .skb-tip:last-child {
	margin-bottom: 0;
}

.skb-home .skb-tip h3 {
	font-size: 17px;
	font-weight: 600;
	color: var(--skb-charcoal);
	margin-bottom: 8px;
}

.skb-home .skb-tip p {
	font-size: 16px;
	color: var(--skb-body);
	line-height: 1.7;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.skb-home .skb-faq {
	margin-top: 48px;
}

.skb-home .skb-faq details {
	border-bottom: 1px solid rgba(44, 44, 44, 0.08);
	padding: 22px 0;
}

.skb-home .skb-faq details:first-child {
	border-top: 1px solid rgba(44, 44, 44, 0.08);
}

.skb-home .skb-faq summary {
	font-family: 'Montserrat', sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: var(--skb-charcoal);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.skb-home .skb-faq summary::-webkit-details-marker {
	display: none;
}

.skb-home .skb-faq summary::after {
	content: '+';
	font-size: 22px;
	font-weight: 300;
	color: var(--skb-gold);
	flex-shrink: 0;
	margin-left: 16px;
	transition: transform 0.3s var(--skb-ease);
}

.skb-home .skb-faq details[open] summary::after {
	content: '\2212';
}

.skb-home .skb-faq-answer {
	color: var(--skb-body);
	line-height: 1.75;
	font-size: 16px;
	padding-top: 14px;
	padding-right: 40px;
	max-width: 65ch;
}

/* ==========================================================================
   CONTACT FORM (homepage embedded)
   ========================================================================== */

.skb-home .skb-contact-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--skb-charcoal);
	margin-bottom: 6px;
}

.skb-home .skb-contact-form input,
.skb-home .skb-contact-form select,
.skb-home .skb-contact-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(44, 44, 44, 0.15);
	border-radius: var(--skb-radius-sm);
	font-size: 16px;
	font-family: inherit;
	background: var(--skb-white);
	transition: border-color 0.2s var(--skb-ease);
}

.skb-home .skb-contact-form input:focus,
.skb-home .skb-contact-form select:focus,
.skb-home .skb-contact-form textarea {
	outline: none;
	border-color: var(--skb-gold);
}

.skb-home .skb-contact-form textarea {
	resize: vertical;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.skb-home .skb-cta-section {
	background: var(--skb-charcoal);
	padding: 100px 24px;
	margin-top: -1px;    /* prevent subpixel gap from body bg bleed */
	text-align: center;
	color: var(--skb-white);
}

.skb-home .skb-cta-section h2 {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(28px, 3.5vw, 38px);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 16px;
	color: var(--skb-white);
}

.skb-home .skb-cta-section p {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 auto 36px;
	max-width: 50ch;
}

.skb-home .skb-cta-phone {
	color: rgba(255, 255, 255, 0.4);
	font-size: 14px;
	margin-top: 28px;
}

.skb-home .skb-cta-phone a {
	color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   RESPONSIVE -- Homepage specific
   ========================================================================== */

@media (max-width: 1024px) {
	.skb-home .skb-hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.skb-home .skb-hero-text {
		padding: 80px 40px 60px;
		text-align: center;
	}

	.skb-home .skb-hero-text .skb-hero-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.skb-home .skb-badge-row {
		justify-content: center;
	}

	.skb-home .skb-hero-image {
		height: 360px;
		position: relative;
	}

	.skb-home .skb-trust-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.skb-home .skb-steps-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
	}

	.skb-home .skb-steps-grid::before {
		display: none;
	}

	.skb-home .skb-step {
		padding: 0 12px;
	}

	.skb-home .skb-services-grid {
		grid-template-columns: 1fr 1fr;
	}

	.skb-home .skb-card--featured {
		grid-column: span 2;
	}

	.skb-home .skb-why-grid {
		gap: 40px;
	}

	.skb-home .skb-why-image .skb-img-placeholder {
		height: 420px;
	}
}

@media (max-width: 768px) {
	.skb-home .skb-hero-text {
		padding: 64px 20px 48px;
	}

	.skb-home .skb-hero-text h1 {
		font-size: 28px;
	}

	.skb-home .skb-hero-image {
		height: 280px;
	}

	.skb-home .skb-trust-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.skb-home .skb-trust-item {
		font-size: 12px;
	}

	.skb-home .skb-trust-item svg {
		width: 16px;
		height: 16px;
	}

	.skb-home .skb-steps-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.skb-home .skb-steps-grid::before {
		display: none;
	}

	.skb-home .skb-services-grid {
		grid-template-columns: 1fr;
	}

	.skb-home .skb-card--featured {
		grid-column: span 1;
	}

	.skb-home .skb-card--featured .skb-img-placeholder {
		height: 200px;
	}

	.skb-home .skb-card--small .skb-img-placeholder {
		height: 180px;
	}

	.skb-home .skb-why-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.skb-home .skb-why-image {
		order: -1;
	}

	.skb-home .skb-why-image .skb-img-placeholder {
		height: 260px;
	}

	.skb-home .skb-faq summary {
		font-size: 15px;
	}

	.skb-home .skb-faq-answer {
		font-size: 15px;
		padding-right: 20px;
	}

	.skb-home .skb-tip {
		padding: 20px;
	}

	.skb-home .skb-cta-section {
		padding: 56px 20px;
	}
}

@media (max-width: 480px) {
	.skb-home .skb-hero-text h1 {
		font-size: 24px;
	}

	.skb-home .skb-badge {
		font-size: 11px;
		padding: 6px 12px;
	}

	.skb-home .skb-trust-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}
}

/* v1.1.0 */
