/**
 * Frontend base styles.
 *
 * Minimal CSS for builder pages rendered on the frontend.
 * Applied only to pages using the Antimanual Builder.
 *
 * @package Antimanual_Builder
 * @since   1.0.0
 */

/* Box sizing reset */
.ambld-page *,
.ambld-page *::before,
.ambld-page *::after {
	box-sizing: border-box;
}

/* Base body styles */
.ambld-page {
	margin: 0;
	padding: 0;
	font-family: var(--ambld-font-family, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
	font-size: var(--ambld-base-size, 16px);
	line-height: var(--ambld-line-height, 1.6);
	color: var(--ambld-color-text, #1e293b);
	background: var(--ambld-color-background, #ffffff);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Images */
img {
	max-width: 100%;
	height: auto;
}

/* Links */
a {
	color: var(--ambld-color-primary, #6366f1);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--ambld-color-secondary, #8b5cf6);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--ambld-heading-family, var(--ambld-font-family, 'Inter', sans-serif));
	font-weight: var(--ambld-heading-weight, 700);
	line-height: 1.3;
	margin-top: 0;
}

/* Buttons */
.ambld-block--button {
	display: inline-block;
	padding: var(--ambld-btn-padding, 12px 24px);
	border-radius: var(--ambld-btn-border-radius, 8px);
	font-weight: var(--ambld-btn-font-weight, 600);
	font-size: var(--ambld-btn-font-size, 14px);
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.ambld-block--button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Section */
.ambld-block--section {
	width: 100%;
}

.ambld-section__inner {
	max-width: var(--ambld-spacing-container-max, 1200px);
	margin: 0 auto;
	padding: 0 20px;
}

/* Row */
.ambld-block--row {
	display: flex;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.ambld-block--row {
		flex-direction: column;
	}

	.ambld-block--column {
		width: 100% !important;
	}
}

/* Divider */
.ambld-block--divider {
	border: none;
	border-top: 1px solid var(--ambld-color-border, #e2e8f0);
}

/* Header & Footer */
.ambld-header,
.ambld-footer {
	width: 100%;
}

/* Main content area */
.ambld-main {
	min-height: 100vh;
}

/* Lazy loading fade-in */
img[loading="lazy"] {
	opacity: 0;
	transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
	opacity: 1;
}



.ambld-template .site-footer {
	width: 100%;
	max-width: 100% !important;
}

.ambld-template .site-header {
	width: 100%;
	max-width: 100% !important;
}
