/* ==========================================================================
   AN PHAT WINDOOR GUTENBERG - BASE STYLES (Mobile-First, Accessible, Clean)
   ========================================================================== */

/* Self-hosted Roboto Variable WOFF2 (400-700, complete Vietnamese + Latin) */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/roboto/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3OUBGEe.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/roboto/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/roboto/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/roboto/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMawCUBGEe.woff2") format("woff2");
	unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #0a0a0a;
	background-color: #ffffff;
}

@media (max-width: 781px) {
	body {
		padding-bottom: 68px; /* Safe space for sticky mobile contact bar */
	}
}

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

a {
	color: #1e73be;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #0a3d91;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid #0e51d1;
	outline-offset: 2px;
}

/* Preserved Table Styling */
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.25rem 0;
	font-size: 0.9375rem;
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.75rem 1rem;
	border: 1px solid #e5e7eb;
	text-align: left;
}

.wp-block-table th {
	background-color: #ebf2f5;
	color: #0a3d91;
	font-weight: 700;
}

/* Minimum 48x48px Accessible Touch Targets on Interactive Buttons */
.wp-block-button__link,
.apw-btn {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.3px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.apw-btn-primary {
	background-color: #0e51d1;
	color: #ffffff !important;
	border: 1.5px solid #0e51d1;
}

.apw-btn-primary:hover {
	background-color: #0a3d91;
	border-color: #0a3d91;
	transform: translateY(-2px);
}

.apw-btn-outline {
	background-color: transparent;
	color: #0e51d1 !important;
	border: 1.5px solid #0e51d1;
}

.apw-btn-outline:hover {
	background-color: #0e51d1;
	color: #ffffff !important;
	transform: translateY(-2px);
}

/* Gutenberg Accordion (core/details) Polish */
.wp-block-details {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0.875rem 1rem;
	margin-bottom: 0.75rem;
	background: #ffffff;
}

.wp-block-details summary {
	font-weight: 700;
	color: #0a3d91;
	cursor: pointer;
	min-height: 36px;
	display: flex;
	align-items: center;
}

/* Container Spacing Helpers */
.apw-section {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 782px) {
	.apw-section {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}
}

.apw-container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Utility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
