/* =====================================
	 Handmade 3D — Main Stylesheet
	 Mobile-first, dark theme, accessible
	 ===================================== */

/* --------- CSS Reset / Base --------- */
* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

:root {
	/* Colors */
	--bg: #0a0a0f;
	--bg-elev: #0f1117;
	--surface: #141826;
	--border: rgba(255, 255, 255, 0.1);
	--text: #e7e9ee;
	--muted: #a8a8ad;
	--accent: #10b981;   /* emerald */
	--accent-2: #22d3ee; /* cyan */
	--warning: #f59e0b;  /* amber */
	--danger: #ef4444;   /* red */
	--success: #10b981;

	/* Sizing */
	--container: 1200px;
	--radius: 14px;
	--radius-sm: 10px;
	--radius-lg: 18px;
	--shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
	--shadow-hard: 0 20px 50px rgba(0,0,0,0.5);

	/* Typography */
	--font: ui-sans-serif, -apple-system, Segoe UI, Roboto, Inter, system-ui, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	--leading: 1.6;
	--h1: clamp(2rem, 1.6rem + 2vw, 3.25rem);
	--h2: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
	--h3: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
}

body {
	font-family: var(--font);
	background: radial-gradient(1200px 600px at 70% -10%, rgba(34,211,238,0.08), transparent 60%),
							radial-gradient(900px 500px at 10% 0%, rgba(16,185,129,0.08), transparent 60%),
							var(--bg);
	color: var(--text);
	line-height: var(--leading);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, video {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-sm);
}

a {
	color: var(--accent-2);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* High contrast support */
@media (prefers-contrast: more) {
	:root {
		--border: rgba(255, 255, 255, 0.22);
		--text: #ffffff;
		--muted: #d6d6d9;
	}
	.main-nav { background: rgba(10,10,15,0.85); }
	.review-card, .feature-card, .payment-card, .calculator-widget, .legal-toc, .legal-section { box-shadow: 0 0 0 1px var(--border); }
}

body.contrast {
	--border: rgba(255, 255, 255, 0.25);
	--text: #ffffff;
	--muted: #d6d6d9;
}

/* Containers */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

/* Utility */
.hidden { display: none !important; }
.touch-device .hover-only { display: none !important; }

/* Focus styles */
:focus-visible {
	outline: 2px solid var(--accent-2);
	outline-offset: 2px;
}

/* --------- Navigation / Header --------- */
.hero {
	position: relative;
	background: linear-gradient(180deg, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0.4) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
	min-height: 88vh;
	display: flex;
	flex-direction: column;
}

.hero-overlay { display: none; }

.main-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	background: rgba(10,10,15,0.4);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--border);
}

.main-nav.scrolled {
	background: rgba(10,10,15,0.7);
}

.main-nav .logo {
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.3px;
}

.nav-links {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: var(--text);
	opacity: 0.85;
}

/* Language Switcher */
.lang-switcher {
	appearance: none;
	background: rgba(255,255,255,0.12);
	color: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 12px;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.3px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Hamburger */
.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border: 1px solid var(--border);
	background: rgba(255,255,255,0.04);
	border-radius: 10px;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.nav-toggle span {
	display: block;
	width: 22px; height: 2px;
	background: #fff;
	border-radius: 2px;
}

/* Hero content */
.hero-content {
	display: grid;
	align-items: center;
	min-height: calc(88vh - 70px);
}

.hero-text {
	max-width: 720px;
	padding: 40px 0 80px;
}

.black-friday-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(34,211,238,0.15), rgba(16,185,129,0.15));
	border: 1px solid var(--border);
	font-size: 13px;
	margin-bottom: 16px;
}

.bf-text { color: #fff; font-weight: 700; }
.bf-discount { color: var(--accent); font-weight: 600; }

h1 {
	font-size: var(--h1);
	line-height: 1.15;
	margin: 8px 0 12px;
}

.hero-lead {
	color: #d1d5db;
	font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
}

.price-highlight { color: var(--accent); }

.hero-features {
	list-style: none;
	padding: 0;
	margin: 18px 0 28px;
	display: grid;
	gap: 6px;
	color: #cbd5e1;
}

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

.printer-badge {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	color: #cbd5e1;
	margin-top: 16px;
	font-size: 13px;
	opacity: 0.9;
}

/* --------- Buttons / CTAs --------- */
.cta-primary,
.cookie-btn,
.modal-btn,
.messenger-btn {
	appearance: none;
	border: 0;
	background: linear-gradient(180deg, #16c696, #0ea87f);
	color: #051710;
	font-weight: 700;
	padding: 12px 18px;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 18px rgba(16,185,129,0.25);
	transition: transform 0.08s ease, box-shadow 0.2s ease;
}

.cta-primary:hover { transform: translateY(-1px); }
.cta-primary:active { transform: translateY(1px); }

.cta-secondary, .cta-tertiary {
	border: 1px solid var(--border);
	background: rgba(255,255,255,0.04);
	color: var(--text);
	padding: 12px 18px;
	border-radius: 12px;
}

.cta-tertiary { opacity: 0.8; }

.cta-large { padding: 14px 20px; font-size: 1rem; }

.whatsapp-btn { background: #25D366; color: #04170d; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 18px rgba(37,211,102,0.25); }

/* Header Write Button */
.cta-write { background: linear-gradient(180deg, #22d3ee, #06b6d4); color: #03181c; }

/* --------- Sections --------- */
.section {
	padding: 72px 0;
}

.section-alt {
	background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.0));
}

.section-title {
	font-size: var(--h2);
	margin: 0 0 10px;
}

.section-lead {
	color: #cbd5e1;
	margin: 0 0 26px;
}

/* Reveal animations */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: all 0.5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------- Feature Cards --------- */
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.feature-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: var(--shadow-soft);
}

.feature-icon {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border-radius: 10px;
	background: rgba(34,211,238,0.08);
	border: 1px solid var(--border);
	margin-bottom: 10px;
}

/* --------- Timeline --------- */
.timeline {
	display: grid;
	gap: 14px;
}

.timeline-item {
	display: grid;
	grid-template-columns: 44px 1fr;
	align-items: start;
	gap: 12px;
	padding: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	opacity: 0; transform: translateY(12px); transition: all 0.5s ease;
}

.timeline-item.is-visible { opacity: 1; transform: none; }

.timeline-marker {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	background: rgba(16,185,129,0.1);
	border: 1px solid var(--border);
	color: var(--accent);
	font-weight: 800;
	border-radius: 10px;
}

.timeline-content h3 { margin: 4px 0 6px; font-size: var(--h3); }
.timeline-content p { margin: 0; color: #cbd5e1; }

/* --------- Sizes Block --------- */
.sizes-block { margin-top: 20px; }
.size-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.size-card {
	padding: 14px;
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(34,211,238,0.07), rgba(16,185,129,0.07));
	border: 1px solid var(--border);
	text-align: center;
}
.size-value { font-weight: 800; font-size: 1.25rem; }
.size-note { color: #cbd5e1; margin-top: 10px; }

/* --------- Calculator --------- */
.calculator-widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	box-shadow: var(--shadow-soft);
}

.size-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
	border: 1px solid var(--border);
	background: rgba(255,255,255,0.04);
	color: var(--text);
	padding: 10px 14px;
	border-radius: 12px;
	cursor: pointer;
}
.size-btn.active { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.35); color: #c7fff0; }

.custom-size-notice {
	display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; color: #cbd5e1;
}

.calculator-options {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0;
}

.option-group { display: grid; gap: 6px; }
.option-group label { color: #cbd5e1; font-size: 0.95rem; }
.calc-select {
	width: 100%;
	padding: 10px 12px;
	background: #0f1420;
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 10px;
}

.pricing-block {
	display: grid; gap: 8px; padding: 10px; border-radius: 12px;
	background: rgba(255,255,255,0.03);
}
.price-breakdown { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.price-item { display: flex; gap: 8px; align-items: center; }
.price-label { color: #cbd5e1; }
.final-price { font-size: 1.6rem; font-weight: 800; color: #d1fae5; }
.shipping-free { color: var(--accent); font-weight: 700; }
.pricing-note { color: #a3a3a3; margin: 2px 0 0; font-size: 0.95rem; }

.progress-bars { display: grid; gap: 10px; margin-top: 6px; }
.progress-item { display: grid; gap: 6px; }
.progress-label { display: flex; justify-content: space-between; color: #cbd5e1; font-size: 0.95rem; }
.progress-bar { height: 10px; background: #101521; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #10b981); border-right: 1px solid rgba(255,255,255,0.4); }

.total-time { display: flex; justify-content: space-between; font-weight: 700; padding-top: 8px; }
.calculator-note { color: #cbd5e1; margin-top: 6px; }

/* --------- Payment Cards --------- */
.payment-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.payment-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	box-shadow: var(--shadow-soft);
}
.payment-card h3 { margin: 6px 0 8px; font-size: var(--h3); }
.payment-card p { margin: 0; color: #cbd5e1; }

/* --------- Reviews Slider --------- */
.reviews-slider { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; }
.slider-btn {
	width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
	background: rgba(255,255,255,0.04); color: var(--text);
	display: grid; place-items: center; cursor: pointer;
}

.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-soft); min-height: 180px; }
.review-header h3 { margin: 0 0 6px; font-size: var(--h3); }
blockquote { margin: 0 0 10px; color: #cbd5e1; font-style: italic; }
.review-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; }
.dot.active { background: linear-gradient(90deg, #22d3ee, #10b981); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
.skeleton-text { height: 14px; }
.skeleton-image { height: 140px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --------- Contact Buttons --------- */
.messenger-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.messenger-btn svg { margin-right: 6px; }

/* --------- Footer --------- */
.site-footer {
	padding: 24px 0 40px;
	border-top: 1px solid var(--border);
	background: rgba(255,255,255,0.02);
}
.footer-content { display: grid; gap: 10px; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-copy, .footer-legal, .footer-contact { color: #a1a1aa; margin: 0; }
.footer-top { display: inline-block; margin-top: 6px; color: #cbd5e1; }

/* --------- Floating Action Button --------- */
.fab-container { position: fixed; bottom: 18px; right: 18px; z-index: 60; }
.fab-button {
	width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--border);
	background: linear-gradient(180deg, #22d3ee, #0ea5b7); color: #02171b;
	display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-hard);
}
.fab-menu { position: absolute; bottom: 70px; right: 0; display: grid; gap: 8px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.2s ease; }
.fab-menu.active { opacity: 1; transform: none; pointer-events: auto; }
.fab-option { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); display: grid; place-items: center; }

/* --------- Cookie Consent --------- */
.cookie-consent {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
	transform: translateY(100%); opacity: 0; pointer-events: none;
	transition: transform 0.4s ease, opacity 0.3s ease;
}
.cookie-consent.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-consent.hide { transform: translateY(100%); opacity: 0; }
.cookie-content {
	max-width: var(--container); margin: 0 auto 18px; background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hard);
	padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 14px;
}
.cookie-text p { margin: 6px 0 0; color: #cbd5e1; }
.cookie-actions { display: flex; gap: 8px; align-items: center; }
.cookie-decline { background: rgba(255,255,255,0.04); color: var(--text); box-shadow: none; border: 1px solid var(--border); }

/* Cookie Decline Modal */
.cookie-decline-modal { position: fixed; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 80; }
.cookie-decline-modal.show { opacity: 1; pointer-events: auto; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; width: min(520px, 92vw); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hard); padding: 16px; z-index: 1; }
.modal-header h3 { margin: 0 0 6px; font-size: var(--h3); }
.modal-body p { margin: 0 0 8px; color: #cbd5e1; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; }
.modal-btn { background: linear-gradient(180deg, #22d3ee, #06b6d4); color: #03181c; }
.modal-btn-secondary { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--border); box-shadow: none; }

/* --------- Reading Progress --------- */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #22d3ee, #10b981); z-index: 90; }

/* --------- Media Viewer Modal --------- */
.media-modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 85; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.media-modal.active { opacity: 1; pointer-events: auto; }
.media-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(2px); }
.media-modal-content { position: relative; width: min(1000px, 94vw); max-height: 92vh; background: #0e1320; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hard); padding: 10px; z-index: 1; }
.media-modal-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; }
.media-modal-body { max-height: calc(92vh - 60px); overflow: auto; }
.media-modal-body img, .media-modal-body video { width: 100%; height: auto; border-radius: 12px; }

/* --------- Legal Page --------- */
.legal-header .main-nav { position: static; background: rgba(10,10,15,0.5); }
.back-link { color: #cbd5e1; }

.legal-container .container { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.legal-toc { position: sticky; top: 76px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-soft); }
.legal-toc h2 { margin: 0 0 8px; font-size: 1.05rem; }
.legal-toc nav { display: grid; gap: 8px; }
.legal-toc a { color: #cbd5e1; }

.legal-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft); margin-bottom: 16px; }
.legal-section h1 { font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.8rem); margin: 0 0 6px; }
.publication-date { color: #a3a3a3; margin: 0 0 10px; }
.legal-content h2 { margin: 12px 0 6px; font-size: 1.1rem; }
.legal-content p { margin: 0 0 8px; color: #cbd5e1; }
.legal-content ul { margin: 0 0 8px 18px; color: #cbd5e1; }
.contact-block { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.email-highlight a { color: var(--accent); font-weight: 700; }

/* --------- Mobile / Responsive --------- */
@media (max-width: 1024px) {
	.features-grid, .payment-content { grid-template-columns: repeat(2, 1fr); }
	.review-media { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
	.nav-toggle { display: inline-flex; }
	.nav-links { 
		position: fixed; inset: 60px 0 auto 0; 
		background: rgba(10,10,15,0.95); backdrop-filter: blur(6px);
		padding: 14px; display: grid; gap: 10px; border-top: 1px solid var(--border);
		transform: translateY(-16px); opacity: 0; pointer-events: none; transition: all 0.2s ease;
	}
	.nav-links.active { transform: none; opacity: 1; pointer-events: auto; }
	.hero-content { min-height: auto; padding-bottom: 32px; }
	.features-grid, .payment-content { grid-template-columns: 1fr; }
	.size-options { grid-template-columns: 1fr; }
	.calculator-options { grid-template-columns: 1fr; }
	.reviews-slider { grid-template-columns: 36px 1fr 36px; }
	.cookie-content { grid-template-columns: 1fr; }
	.legal-container .container { grid-template-columns: 1fr; }
	.legal-toc { position: static; }
}

@media (max-width: 420px) {
	.cta-primary, .cta-secondary, .cta-tertiary { width: 100%; text-align: center; }
}

/* --------- Misc --------- */
.printer-badge svg { color: #9ca3af; }
.footer-nav a { color: #cbd5e1; }

