/*
Theme Name: Autotech Child
Theme URI: https://example.com/autotech-child
Description: Child theme của Twenty Twenty-Five dành cho Autotech. Kế thừa toàn bộ tính năng của theme cha và bổ sung tùy chỉnh riêng.
Author: Autotech Team
Author URI: https://example.com
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autotech-child
Tags: custom-colors, custom-menu, custom-logo, featured-images, full-site-editing, block-patterns, wide-blocks
*/

/* =============================================
   CUSTOM STYLES - Autotech Child Theme
   Các style tùy chỉnh thêm vào đây
   ============================================= */

/* ---- Navigation Menu ---- */
.wp-block-navigation a {
	text-decoration: none;
}

.wp-block-navigation a:hover {
	text-decoration: underline;
}

/* ---- Widget Sidebar ---- */
.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid currentColor;
}

/* ---- General ---- */
.site-content {
	max-width: var(--wp--style--global--content-size, 1250px);
	margin-inline: auto;
}

/* Font apply toàn site */
html,
body,
button,
input,
select,
textarea {
	font-family: "Be Vietnam Pro", sans-serif;
}

/* Max width chung cho các template dùng .container */
.container {
	max-width: 1250px;
	margin-left: auto;
	margin-right: auto;
}
section .container {
	padding-inline: 20px;
	box-sizing: border-box;
}
/* FA6 Free không có "fal" (light) -> fallback sang solid để icon luôn hiển thị */
.fal,
.far {
	font-family: "Font Awesome 6 Free";
	font-weight: 700;
}

/* Google Translate: ẩn widget mặc định và banner top */
.autotech-google-translate {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

body {
	top: 0 !important;
}

.goog-te-banner-frame,
iframe.skiptranslate,
body > .skiptranslate {
	display: none !important;
	visibility: hidden !important;
}

.goog-te-gadget,
.goog-logo-link,
.goog-te-gadget span {
	display: none !important;
}

strong {
	font-weight: 700;
}

.section-header .container, .site-footer .container {
	box-sizing: border-box;
}

/* ---- Brand variants ---- */
:root {
	--at-variant-red: #ca1f27;
	--at-variant-red-hover: #a9151d;
	--at-variant-blue: #062b5f;
	--at-button-bg: var(--at-variant-red);
	--at-button-bg-hover: var(--at-variant-red-hover);
	--at-accent: var(--at-variant-blue);
}

/* ---- Unified button color ---- */
button,
input[type="submit"],
input[type="button"],
[class*="btn"],
[class*="button"],
.wp-element-button,
.wp-block-button__link,
.button,
.search-submit,
.cta-button,
.consult-submit-btn,
.subscribe-btn,
.home-banner-slide__btn,
.home-about-btn,
.home-contact-form__submit,
.service-btn,
.service-btn--cta,
.see-more-btn,
.service-download-btn,
.post-related-nav__btn,
.service-search-form button {
	background-color: var(--at-button-bg);
	background-image: linear-gradient(90deg, var(--at-button-bg-hover) 0%, var(--at-button-bg-hover) 100%);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 100%;
	border-color: var(--at-button-bg);
	color: #fff;
	transition: background-size 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
[class*="btn"]:hover,
[class*="button"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.button:hover,
.search-submit:hover,
.cta-button:hover,
.consult-submit-btn:hover,
.subscribe-btn:hover,
.home-banner-slide__btn:hover,
.home-about-btn:hover,
.home-contact-form__submit:hover,
.service-btn:hover,
.service-btn--cta:hover,
.see-more-btn:hover,
.service-download-btn:hover,
.post-related-nav__btn:hover,
.service-search-form button:hover {
	background-size: 100% 100%;
	background-color: var(--at-button-bg-hover);
	border-color: var(--at-button-bg-hover);
	color: #fff;
}