/*
Theme Name: My Theme
Author: Mihaela, Orinta, Aneta
Description: Custom theme for the glam makeup reseller shop project
Version: 1.0
*/



@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Text:wght@200..700&display=swap');

body {
	margin: 0; 
	font-family: "Stack Sans Text", sans-serif;
	color: #333;
}
select, input, textarea, button {
	font-family: "Stack Sans Text", sans-serif !important;
}
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ===== Header ===== */
.site-header {
	background: #5c0e2e;
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header .container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-header .logo { font-size: 1.5rem; font-style: italic; }
.site-header nav ul { display: flex; gap: 2rem; }
.site-header nav a, .site-header .cart, .site-header .header-lang a {
	text-decoration: none;
	color: #fff;
	position: relative;
	padding-bottom: 4px;
}
.site-header nav a::after, .site-header .cart::after, .site-header .header-lang a::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 2px;
	background: #fff;
	transition: width 0.3s ease, left 0.3s ease;
}
.site-header nav a:hover::after, .site-header .cart:hover::after, .site-header .header-lang a:hover::after {
	width: 100%;
	left: 0;
}

.cart {
	background: transparent;
	border: none;
	color: #fff;
	font: inherit;
	cursor: pointer;
	padding: 0.5rem 0.75rem;
}

/* ===== Footer ===== */
.site-footer {
	background: #5c0e2e;
	color: #fff;
}
.site-footer .container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}
.site-footer .footer-grid {
	display: grid;
	grid-template-columns: 1fr 2fr 2fr 2fr;
	grid-template-rows: auto auto auto;
	align-items: start;
	gap: 0.5rem 1rem;
}

.footer-col-1,
.footer-col-2,
.footer-col-3 {
	display: contents;
}

.footer-col-1 h2 { grid-column: 2; grid-row: 1; }
.footer-col-1 ul { grid-column: 2; grid-row: 3; }
.footer-col-2 h2 { grid-column: 3; grid-row: 1; }
.footer-col-2 ul { grid-column: 3; grid-row: 3; }
.footer-col-3 h2 { grid-column: 4; grid-row: 1; }
.footer-col-3 ul { grid-column: 4; grid-row: 3; }

.footer-col h2 {
	font-size: 1rem;
	margin: 0 0 0.2rem;
}
.footer-col ul {
	margin: 0;
}

.footer-divider {
	grid-column: 2 / -1;
	grid-row: 2;
	height: 1px;
	background: rgba(255, 255, 255, 0.4);
	margin: 0.2rem 0;
}

.site-footer .logo {
	grid-row: 1 / 4;
	display: flex;
	height: 100%;
	margin-bottom: -1rem;
	margin-right: -1rem;
}
.site-footer .logo img {
	height: 56px;
	display: block;
}

.site-footer ul a {
	text-decoration: none;
	display: inline-block;
	padding: 0.25rem 0;
	min-height: 24px;
}

/* Shared button style — used on homepage AND contact page */
.btn {
	padding: 0.75rem 1.75rem;
	border-radius: 0;
	background: #f3b6d1;
	color: #4a0e2e;
	text-decoration: none;
	font-weight: 600;
}

.btn:hover {
	background: #4a0e2e;
	color: #fff;
	box-shadow: 0 0 20px 4px rgba(249, 219, 232, 0.7);
}

/* Shared blog card — used on homepage teaser AND blog listing page */
.blog-card {
	background: #ecdcc7;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 8px rgba(48, 2, 23, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
}
.blog-card:hover {
	transform: scale(1.02);
	box-shadow: 0 0 20px 4px rgba(243, 182, 209, 0.7);
}
.blog-card-thumb {
	width: 100%;
	height: 260px;
	overflow: hidden;
	flex-shrink: 0;
}
.blog-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.blog-card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.blog-card-body h3 {
	margin: 0 0 0.4rem;
	color: #7a1f45;
	font-size: 1.15rem;
}
.blog-card-excerpt {
	font-size: 0.95rem;
	color: #555;
	margin: 0 0 0.5rem;
}
.blog-card-footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 0.5rem;
}

.blog-card-date,
.blog-card-readtime {
	font-size: 0.85rem;
	color: #6b5548;   /* darker, passes 4.5:1 on #ecdcc7 */
	margin: 0;
}

/* ===== Accessibility: visible focus indicator, everywhere ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
	outline: 3px solid #4a0e2e;
	outline-offset: 2px;
}

/* ===== Skip link — hidden until focused, then jumps to top ===== */
.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: #4a0e2e;
	color: #fff;
	padding: 0.75rem 1.5rem;
	z-index: 1000;
	text-decoration: none;
	font-weight: 600;
}
.skip-link:focus {
	top: 0;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ===== Respect users who prefer reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 768px) {
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.testimonial-grid, .blog-grid { grid-template-columns: 1fr; }
	.site-footer .container { grid-template-columns: 1fr; }
}


