/**
 * SFS Quotation System — Frontend Styles
 */

:root {
	--sfs-primary: #8B7355;
	--sfs-primary-dark: #6B5344;
	--sfs-gold: #D4AF37;
	--sfs-dark: #1a1a1a;
	--sfs-light: #f8f7f5;
	--sfs-wa: #25D366;
	--sfs-wa-dark: #128C7E;
	--sfs-success: #16a34a;
	--sfs-danger: #ef4444;
	--sfs-shadow: 0 4px 15px rgba(0,0,0,0.08);
	--sfs-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

.sfs-landing,
.sfs-quote-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	line-height: 1.6;
}

.sfs-landing *,
.sfs-quote-wrap * { box-sizing: border-box; }

.sfs-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.sfs-section-header {
	text-align: center;
	margin-bottom: 40px;
}

.sfs-section-header h2 {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	color: var(--sfs-dark);
	margin: 0 0 10px;
	line-height: 1.2;
}

.sfs-section-header p {
	color: #666;
	font-size: 16px;
	margin: 0;
	max-width: 600px;
	margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.sfs-hero {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: white;
}

.sfs-hero-bg {
	position: absolute; inset: 0;
	background: url('https://wickerboys.co.za/wp-content/uploads/2026/05/sfs-wicker-furniture-11.jpg') center/cover no-repeat;
	transform: scale(1.05);
	animation: sfsZoom 25s ease-in-out infinite alternate;
}

@keyframes sfsZoom {
	0%   { transform: scale(1.05); }
	100% { transform: scale(1.15); }
}

.sfs-hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(26,26,26,0.75) 50%, rgba(139,115,85,0.6) 100%);
}

.sfs-hero-content {
	position: relative;
	z-index: 2;
	padding: 80px 20px;
	text-align: center;
	max-width: 900px;
}

.sfs-hero-badges {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.sfs-hero-badges span {
	background: rgba(255,255,255,0.15);
	backdrop-filter: blur(10px);
	color: white;
	padding: 8px 16px;
	border-radius: 24px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid rgba(255,255,255,0.2);
}

.sfs-hero h1 {
	color: white;
	font-size: clamp(32px, 6vw, 56px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 20px;
	text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.sfs-hero-sub {
	font-size: clamp(16px, 2vw, 20px);
	color: rgba(255,255,255,0.9);
	margin-bottom: 36px;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

.sfs-hero-cta {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.sfs-cta-primary,
.sfs-cta-whatsapp,
.sfs-cta-call {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 32px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s;
	box-shadow: 0 8px 25px rgba(0,0,0,0.25);
	white-space: nowrap;
}

.sfs-cta-primary {
	background: linear-gradient(135deg, var(--sfs-gold) 0%, #b8962e 100%);
	color: #000;
}

.sfs-cta-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(212,175,55,0.5);
	color: #000;
}

.sfs-cta-whatsapp {
	background: linear-gradient(135deg, var(--sfs-wa) 0%, var(--sfs-wa-dark) 100%);
	color: white;
}

.sfs-cta-whatsapp:hover {
	transform: translateY(-3px);
	color: white;
	box-shadow: 0 12px 30px rgba(37,211,102,0.5);
}

.sfs-cta-call {
	background: white;
	color: var(--sfs-dark);
}

.sfs-cta-call:hover {
	transform: translateY(-3px);
	color: var(--sfs-dark);
}

.sfs-hero-trust {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 14px;
	color: rgba(255,255,255,0.9);
}

.sfs-hero-trust > div {
	font-weight: 500;
}

/* ============================================
   FEATURED CAROUSEL — smart layout:
   - Auto-grid when few items (fills the row)
   - Horizontal scroll when many items
   ============================================ */
.sfs-featured-carousel-section,
.sfs-carousel-section {
	padding: 60px 0;
	background: white;
}

/* Default: responsive grid (best UX for 1-4 products) */
.sfs-carousel-scroller {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	padding: 10px 4px 20px;
	max-width: 1240px;
	margin: 0 auto;
}

/* When 5+ items exist, switch to horizontal scroll */
.sfs-carousel-scroller.is-scroll {
	display: flex;
	grid-template-columns: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--sfs-primary) #eee;
}

.sfs-carousel-scroller.is-scroll::-webkit-scrollbar { height: 8px; }
.sfs-carousel-scroller.is-scroll::-webkit-scrollbar-thumb {
	background: var(--sfs-primary);
	border-radius: 4px;
}

.sfs-carousel-scroller.is-scroll .sfs-carousel-card {
	flex: 0 0 300px;
	scroll-snap-align: start;
}

/* Card design — mirrors product page look */
.sfs-carousel-card {
	background: white;
	border: 1px solid #eee;
	border-radius: 14px;
	overflow: hidden;
	transition: all 0.3s;
	box-shadow: var(--sfs-shadow);
	display: flex;
	flex-direction: column;
}

.sfs-carousel-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--sfs-shadow-lg);
	border-color: var(--sfs-primary);
}

.sfs-carousel-card > a:first-child {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4/3;
	background: #f5f5f5;
}

.sfs-carousel-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s;
}

.sfs-carousel-card:hover img {
	transform: scale(1.08);
}

.sfs-carousel-body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.sfs-carousel-body h4 {
	font-size: 17px;
	margin: 0 0 10px;
	line-height: 1.3;
	font-weight: 700;
	flex: 1;
}

.sfs-carousel-body h4 a {
	color: var(--sfs-dark);
	text-decoration: none;
}

.sfs-carousel-body h4 a:hover { color: var(--sfs-primary); }

.sfs-carousel-price {
	font-size: 22px;
	font-weight: 800;
	color: var(--sfs-primary);
	margin-bottom: 14px;
}

.sfs-carousel-body .sfs-btn-quote-small {
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(139,115,85,0.25);
}

.sfs-carousel-body .sfs-btn-quote-small:hover {
	box-shadow: 0 4px 12px rgba(139,115,85,0.4);
	transform: translateY(-1px);
}

/* ============================================
   POPULAR PRODUCTS GRID
   ============================================ */
.sfs-popular-section {
	padding: 60px 0;
	background: linear-gradient(180deg, #f8f7f5 0%, white 100%);
}

.sfs-popular-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.sfs-popular-card {
	background: white;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--sfs-shadow);
	transition: all 0.3s;
	position: relative;
	display: flex;
	flex-direction: column;
}

.sfs-popular-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--sfs-shadow-lg);
}

.sfs-popular-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: linear-gradient(135deg, #ff4444, #cc0000);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 4px 12px rgba(255,68,68,0.4);
	animation: sfsPulse 2s infinite;
}

@keyframes sfsPulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.05); }
}

.sfs-popular-img {
	display: block;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #f5f5f5;
}

.sfs-popular-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.sfs-popular-card:hover .sfs-popular-img img {
	transform: scale(1.08);
}

.sfs-popular-body {
	padding: 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.sfs-popular-cat {
	font-size: 11px;
	color: var(--sfs-primary);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.sfs-popular-body h3 {
	font-size: 16px;
	margin: 0 0 10px;
	line-height: 1.3;
}

.sfs-popular-body h3 a {
	color: var(--sfs-dark);
	text-decoration: none;
}

.sfs-popular-body h3 a:hover { color: var(--sfs-primary); }

.sfs-popular-desc {
	color: #666;
	font-size: 13px;
	margin: 0 0 12px;
	flex: 1;
}

.sfs-popular-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	font-size: 12px;
}

.sfs-stars {
	color: #d1d5db;
	font-size: 14px;
	letter-spacing: 1px;
}

.sfs-stars .on { color: #fbbf24; }

.sfs-views {
	color: #666;
	font-weight: 500;
}

.sfs-popular-price {
	font-size: 22px;
	font-weight: 800;
	color: var(--sfs-primary);
	margin-bottom: 12px;
}

.sfs-popular-actions {
	display: flex;
	gap: 6px;
}

.sfs-btn-quote,
.sfs-btn-view,
.sfs-btn-wa,
.sfs-btn-quote-small {
	flex: 1;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	border: none;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.sfs-btn-quote {
	background: linear-gradient(135deg, var(--sfs-primary), var(--sfs-primary-dark));
	color: white;
}

.sfs-btn-quote:hover {
	background: linear-gradient(135deg, var(--sfs-primary-dark), #4a3826);
	color: white;
	transform: translateY(-1px);
}

.sfs-btn-quote.is-added {
	background: linear-gradient(135deg, var(--sfs-success), #15803d);
}

.sfs-btn-view {
	background: white;
	color: var(--sfs-dark);
	border: 1.5px solid #e5e7eb;
}

.sfs-btn-view:hover {
	background: #f9fafb;
	color: var(--sfs-dark);
	border-color: var(--sfs-primary);
}

.sfs-btn-wa {
	background: var(--sfs-wa);
	color: white;
	flex: 0 0 44px;
	max-width: 44px;
}

.sfs-btn-wa:hover {
	background: var(--sfs-wa-dark);
	color: white;
}

.sfs-btn-quote-small {
	background: var(--sfs-primary);
	color: white;
	padding: 8px 14px;
	border-radius: 6px;
}

.sfs-btn-quote-small:hover {
	background: var(--sfs-primary-dark);
	color: white;
}

.sfs-btn-quote-small.is-added {
	background: var(--sfs-success);
}

/* ============================================
   QUOTE FORM
   ============================================ */
.sfs-form-section-wrap {
	padding: 60px 0;
	background: linear-gradient(135deg, #f8f7f5 0%, #eef1f4 100%);
}

.sfs-quote-form-container {
	max-width: 1000px;
	margin: 0 auto;
	background: white;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.sfs-quote-form-header {
	background: linear-gradient(135deg, var(--sfs-primary) 0%, var(--sfs-primary-dark) 100%);
	color: white;
	padding: 40px;
	text-align: center;
}

.sfs-quote-form-header h2 {
	color: white;
	font-size: clamp(24px, 4vw, 32px);
	margin: 0 0 10px;
	font-weight: 800;
}

.sfs-quote-form-header p {
	color: rgba(255,255,255,0.9);
	margin: 0;
	font-size: 15px;
}

.sfs-quote-form {
	padding: 40px;
}

.sfs-form-grid {
	display: grid;
	gap: 30px;
}

.sfs-form-section {
	background: #fafafa;
	border-radius: 12px;
	padding: 24px;
	border: 1px solid #eee;
}

.sfs-form-section h3 {
	font-size: 17px;
	margin: 0 0 20px;
	color: var(--sfs-dark);
	font-weight: 700;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--sfs-primary);
	display: inline-block;
}

.sfs-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

@media (max-width: 640px) {
	.sfs-form-row { grid-template-columns: 1fr; }
}

.sfs-field {
	display: flex;
	flex-direction: column;
}

.sfs-field-full {
	grid-column: 1 / -1;
}

.sfs-field label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.sfs-field .req {
	color: #ef4444;
}

.sfs-field input,
.sfs-field select,
.sfs-field textarea {
	padding: 12px 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: white;
	transition: all 0.2s;
	width: 100%;
}

.sfs-field input:focus,
.sfs-field select:focus,
.sfs-field textarea:focus {
	outline: none;
	border-color: var(--sfs-primary);
	box-shadow: 0 0 0 3px rgba(139,115,85,0.15);
}

.sfs-field select[multiple] {
	padding: 8px;
	min-height: 150px;
}

.sfs-field small {
	font-size: 11px;
	color: #666;
	margin-top: 4px;
}

.sfs-field textarea {
	resize: vertical;
	min-height: 80px;
}

.sfs-form-footer {
	margin-top: 30px;
	text-align: center;
}

.sfs-form-trust {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #666;
	margin-bottom: 20px;
	font-weight: 500;
}

.sfs-btn-submit {
	background: linear-gradient(135deg, var(--sfs-gold) 0%, #b8962e 100%);
	color: #000;
	border: none;
	padding: 18px 48px;
	font-size: 18px;
	font-weight: 800;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 8px 25px rgba(212,175,55,0.35);
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
	min-width: 280px;
}

.sfs-btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(212,175,55,0.5);
}

.sfs-btn-submit.is-loading {
	pointer-events: none;
	opacity: 0.85;
	color: transparent;
}

.sfs-btn-submit.is-loading .sfs-btn-text { visibility: hidden; }

.sfs-btn-submit.is-loading::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 24px; height: 24px;
	margin: -12px 0 0 -12px;
	border: 3px solid rgba(0,0,0,0.2);
	border-top-color: #000;
	border-radius: 50%;
	animation: sfsSpin 0.6s linear infinite;
}

@keyframes sfsSpin {
	to { transform: rotate(360deg); }
}

.sfs-btn-whatsapp-alt {
	display: inline-block;
	margin-top: 16px;
	color: var(--sfs-wa-dark);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}

.sfs-btn-whatsapp-alt:hover {
	color: var(--sfs-wa);
	text-decoration: underline;
}

.sfs-form-response {
	margin-top: 20px;
}

.sfs-form-response.is-success,
.sfs-form-response.is-error {
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	font-size: 15px;
	font-weight: 500;
	animation: sfsSlideIn 0.4s ease;
}

.sfs-form-response.is-success {
	background: #ecfdf5;
	border: 2px solid #a7f3d0;
	color: #065f46;
}

.sfs-form-response.is-error {
	background: #fef2f2;
	border: 2px solid #fecaca;
	color: #991b1b;
}

@keyframes sfsSlideIn {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.sfs-reviews-section {
	padding: 60px 0;
	background: white;
}

.sfs-reviews-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.sfs-review {
	background: #fafafa;
	border-radius: 12px;
	padding: 24px;
	border-left: 4px solid var(--sfs-gold);
}

.sfs-review-stars {
	color: #fbbf24;
	font-size: 20px;
	margin-bottom: 10px;
	letter-spacing: 2px;
}

.sfs-review p {
	color: #333;
	font-style: italic;
	line-height: 1.7;
	margin: 0 0 12px;
}

.sfs-review-author {
	color: #666;
	font-weight: 600;
	font-size: 13px;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.sfs-trust-section {
	padding: 60px 0;
	background: linear-gradient(135deg, var(--sfs-dark) 0%, #2a2a2a 100%);
	color: white;
}

.sfs-trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
}

.sfs-trust-item {
	text-align: center;
	padding: 20px;
}

.sfs-trust-icon {
	font-size: 48px;
	margin-bottom: 16px;
}

.sfs-trust-item h3 {
	color: var(--sfs-gold);
	font-size: 18px;
	margin: 0 0 10px;
	font-weight: 700;
}

.sfs-trust-item p {
	color: rgba(255,255,255,0.8);
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */
.sfs-faq-section {
	padding: 60px 0;
	background: white;
}

.sfs-faq-list {
	max-width: 780px;
	margin: 0 auto;
}

.sfs-faq-item {
	background: #fafafa;
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 12px;
	border: 1px solid #eee;
	transition: all 0.2s;
}

.sfs-faq-item[open] {
	background: white;
	border-color: var(--sfs-primary);
	box-shadow: var(--sfs-shadow);
}

.sfs-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--sfs-dark);
	font-size: 16px;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sfs-faq-item summary::-webkit-details-marker { display: none; }

.sfs-faq-item summary::after {
	content: "+";
	color: var(--sfs-primary);
	font-size: 24px;
	font-weight: 300;
	transition: transform 0.3s;
}

.sfs-faq-item[open] summary::after {
	transform: rotate(45deg);
}

.sfs-faq-item p {
	margin: 14px 0 0;
	color: #555;
	line-height: 1.7;
}

/* ============================================
   FINAL CTA
   ============================================ */
.sfs-final-cta {
	padding: 80px 0;
	background: linear-gradient(135deg, var(--sfs-primary) 0%, var(--sfs-primary-dark) 100%);
	color: white;
	text-align: center;
}

.sfs-final-cta h2 {
	color: white;
	font-size: clamp(28px, 5vw, 42px);
	margin: 0 0 16px;
	font-weight: 800;
}

.sfs-final-cta p {
	font-size: 18px;
	color: rgba(255,255,255,0.9);
	margin: 0 0 30px;
}

.sfs-final-buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sfs-sticky-cta {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
	padding: 10px;
	z-index: 9998;
	gap: 8px;
}

.sfs-sticky-btn {
	flex: 1;
	padding: 12px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 13px;
	text-align: center;
	text-decoration: none;
	color: white;
}

.sfs-sticky-call { background: var(--sfs-dark); }
.sfs-sticky-wa   { background: var(--sfs-wa); }
.sfs-sticky-quote { background: var(--sfs-gold); color: #000; }

@media (max-width: 768px) {
	.sfs-sticky-cta { display: flex; }
	body { padding-bottom: 70px; }
}

/* ============================================
   RECOMMENDATIONS
   ============================================ */
.sfs-recommendations {
	padding: 40px 20px;
}

.sfs-recommend-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.sfs-recommend-card {
	background: white;
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	padding: 12px;
	text-align: center;
	transition: all 0.3s;
}

.sfs-recommend-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--sfs-shadow);
}

.sfs-recommend-card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 10px;
}

.sfs-recommend-card h4 {
	font-size: 14px;
	margin: 0 0 6px;
	line-height: 1.3;
}

.sfs-recommend-card h4 a {
	color: var(--sfs-dark);
	text-decoration: none;
}

.sfs-recommend-price {
	color: var(--sfs-primary);
	font-weight: 700;
	margin-bottom: 10px;
}

/* ============================================
   TOAST
   ============================================ */
.sfs-toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: var(--sfs-dark);
	color: white;
	padding: 14px 24px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	z-index: 99999;
	opacity: 0;
	transition: all 0.3s;
	pointer-events: none;
}

.sfs-toast.is-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.sfs-toast.is-success { background: var(--sfs-success); }
.sfs-toast.is-error   { background: var(--sfs-danger); }
