/*
Theme Name: SaolaAI
Theme URI: https://saola.ai
Author: ezCloud
Description: Theme website SaolaAI — Bộ não AI của khách sạn. Nội dung sửa bằng Gutenberg, song ngữ với Polylang.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: saola
Update URI: false
*/

body {
	margin: 0;
	background: #FFFFFF;
	color: #1B2A4A;
	font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}

:is(.sa, .editor-styles-wrapper) :is(.wp-block-group, .wp-block-quote, .wp-block-list, ul, ol, figure) {
	box-sizing: content-box;
}
:is(.sa, .editor-styles-wrapper) .wp-block-table {
	margin: 0;
	overflow: visible;
}
:is(.sa, .editor-styles-wrapper) .wp-block-table :is(thead, tbody, tfoot, tr, td, th) {
	border: 0;
	padding: 0;
}
:is(.sa, .editor-styles-wrapper) .wp-block-quote {
	border: 0;
	padding: 0;
	margin: 0;
	overflow-wrap: normal;
}

:where(.sa, .editor-styles-wrapper) a { color: #1E7FA3; }
:where(.sa, .editor-styles-wrapper) a:hover { color: #1B2A4A; }
:where(.sa-footer) a { color: #C9D2E0; }
:where(.sa-footer) a:hover { color: #FFFFFF; }

.sa .saola-tab-label { display: none; }
.sa .saola-tabpanel[hidden] { display: none; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	left: 8px; top: 8px; padding: 12px 16px; background: #FFFFFF; color: #0F1A2E;
}

.saola-form [hidden] { display: none !important; }
.saola-form button[disabled] { opacity: .6; cursor: wait; }

.sa-hdr-toggle { display: none; }

@media (min-width: 1200px) {
	.sa-hdr-row { flex-wrap: nowrap !important; }
	.sa-hdr-nav { flex: 0 1 auto; min-width: 0; justify-content: center; }
	.sa-hdr-nav a { white-space: nowrap; }
	.sa-hdr-row > a, .sa-hdr-actions { flex: 0 0 auto; }
	.sa-hdr-actions a { white-space: nowrap; }
}

@media (max-width: 1199px) {
	.sa-hdr { position: relative; z-index: 50; }
	.sa-hdr-row { flex-wrap: wrap !important; row-gap: 0 !important; }
	.sa-hdr-toggle {
		display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
		width: 44px; height: 44px; padding: 0; margin-left: auto; cursor: pointer;
		background: transparent; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
	}
	.sa-hdr-toggle span {
		display: block; width: 20px; height: 2px; border-radius: 2px; background: #FFFFFF;
		transition: transform .2s ease, opacity .2s ease;
	}
	.sa-hdr.is-open .sa-hdr-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.sa-hdr.is-open .sa-hdr-toggle span:nth-child(2) { opacity: 0; }
	.sa-hdr.is-open .sa-hdr-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.sa-hdr-toggle:focus-visible { outline: 2px solid #F5A623; outline-offset: 2px; }

	.sa-hdr-nav, .sa-hdr-actions { display: none !important; }
	.sa-hdr.is-open .sa-hdr-nav {
		display: flex !important; flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; flex: 1 1 100%; order: 3;
		gap: 2px !important; font-size: 16px !important;
		margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1);
	}
	.sa-hdr.is-open .sa-hdr-nav a {
		padding: 12px 12px !important; border-radius: 8px; min-height: 44px; box-sizing: border-box;
		display: flex; align-items: center; justify-content: flex-start; width: 100%;
	}
	.sa-hdr.is-open .sa-hdr-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 #F5A623 !important; }
	.sa-hdr.is-open .sa-hdr-actions {
		display: flex !important; flex-wrap: wrap; flex: 1 1 100%; order: 4;
		gap: 12px 16px !important; padding: 16px 0 8px;
		border-top: 1px solid rgba(255,255,255,0.1); margin-top: 12px;
	}
	.sa-hdr.is-open .sa-hdr-actions > a:last-child { flex: 1 1 100%; justify-content: center; min-height: 48px !important; font-size: 16px; }
}
@media (max-width: 1199px) and (prefers-reduced-motion: reduce) {
	.sa-hdr-toggle span { transition: none; }
}
