/* ==========================================================================
   LibraCenter Theme — Base CSS
   Reset + Typography + Grid Utilities
   Mobile-first approach
   ========================================================================== */

/* ---------------------------------------------------------------------------
   CSS Reset (modern minimal reset)
   --------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	font-size: 16px;
	scrollbar-gutter: stable;
	overflow-x: hidden;
}

body {
	background-color: var(--lc-bg);
	color: var(--lc-text);
	font-family: var(--lc-font);
	font-size: 1rem;
	line-height: 1.6;
	min-height: 100vh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

ul,
ol {
	list-style: none;
}

a {
	color: var(--lc-primary);
	text-decoration: none;
}

a:hover {
	color: var(--lc-secondary);
	text-decoration: underline;
}

button {
	background: none;
	border: none;
	cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--lc-text);
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
	margin-bottom: 1em;
}

p:last-child {
	margin-bottom: 0;
}

strong,
b {
	font-weight: 700;
}

em,
i {
	font-style: italic;
}

small {
	font-size: 0.875em;
}

.lc-text-muted {
	color: var(--lc-text-muted);
}

.lc-text-center  { text-align: center; }
.lc-text-left    { text-align: left; }
.lc-text-right   { text-align: right; }

/* ---------------------------------------------------------------------------
   Layout Container
   --------------------------------------------------------------------------- */

.lc-container {
	margin-inline: auto;
	max-width: var(--lc-max-width);
	padding-inline: 1rem;
	width: 100%;
}

@media (min-width: 640px) {
	.lc-container {
		padding-inline: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.lc-container {
		padding-inline: 2rem;
	}
}

/* ---------------------------------------------------------------------------
   Grid Utilities (CSS Grid, mobile-first)
   --------------------------------------------------------------------------- */

.lc-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

/* 2-column grid */
@media (min-width: 640px) {
	.lc-grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 3-column grid */
@media (min-width: 768px) {
	.lc-grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* 4-column grid */
@media (min-width: 1024px) {
	.lc-grid-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Flexbox row utility */
.lc-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.lc-flex-center {
	align-items: center;
	justify-content: center;
}

.lc-flex-between {
	align-items: center;
	justify-content: space-between;
}

/* ---------------------------------------------------------------------------
   Spacing Utilities
   --------------------------------------------------------------------------- */

.lc-mt-1 { margin-top: 0.25rem; }
.lc-mt-2 { margin-top: 0.5rem; }
.lc-mt-4 { margin-top: 1rem; }
.lc-mt-8 { margin-top: 2rem; }

.lc-mb-1 { margin-bottom: 0.25rem; }
.lc-mb-2 { margin-bottom: 0.5rem; }
.lc-mb-4 { margin-bottom: 1rem; }
.lc-mb-6 { margin-bottom: 1.5rem; }
.lc-mb-8 { margin-bottom: 2rem; }

.lc-py-4  { padding-block: 1rem; }
.lc-py-8  { padding-block: 2rem; }
.lc-py-16 { padding-block: 4rem; }

.lc-px-4 { padding-inline: 1rem; }

/* ---------------------------------------------------------------------------
   Section
   --------------------------------------------------------------------------- */

.lc-section {
	padding-block: 3rem;
}

@media (min-width: 768px) {
	.lc-section {
		padding-block: 4rem;
	}
}

.lc-section--light {
	background-color: var(--lc-bg-light);
}

/* ---------------------------------------------------------------------------
   Visibility Utilities
   --------------------------------------------------------------------------- */

.lc-sr-only {
	clip: rect(0, 0, 0, 0);
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* ---------------------------------------------------------------------------
   WordPress Core Alignment
   --------------------------------------------------------------------------- */

.alignleft  { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { max-width: calc(var(--lc-max-width) + 200px); }
.alignfull  { max-width: 100%; width: 100%; }
