/*
Theme Name: Giang Côn Đảo
Theme URI: https://giangcondao.vn
Author: Giang Côn Đảo
Description: Giao diện riêng của giangcondao.vn — Giang, người con Côn Đảo 3 đời: đặc sản hạt bàng, hải sản Côn Đảo, du lịch Côn Đảo. Block theme, màu và chữ theo nhận diện thương hiệu (xanh cobalt #214099, đỏ #BE1E2D, kem #F2D9A6, Be Vietnam Pro).
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giang-con-dao
*/

/* Phần lớn kiểu dáng nằm trong theme.json. Tệp này chỉ giữ vài chi tiết theme.json chưa làm được. */
:where(.wp-site-blocks) a:where(:not(.wp-element-button)):focus-visible,
:where(.wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--do);
	outline-offset: 2px;
}
.cc-the {
	border-radius: 16px;
	overflow: hidden;
}
.cc-the img {
	transition: transform .4s ease;
}
.cc-the:hover img {
	transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
	.cc-the img { transition: none; }
}

/* ---------- Nút viền (nút thứ hai) ---------- */
.cc-nut-vien.wp-element-button,
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border: 2px solid currentColor;
}
.has-xanh-dam-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }

/* ---------- Thẻ, dải tin cậy, bước ---------- */
.cc-the { background: var(--wp--preset--color--trang); box-shadow: 0 1px 0 rgba(22,39,94,.06), 0 8px 24px -14px rgba(22,39,94,.35); }
.cc-the .wp-block-image { margin: 0; }
.cc-the a { text-decoration: none; }
.cc-tin-cay p { margin: 0; }
.cc-buoc__so {
	display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
	background: var(--wp--preset--color--do); color: #fff; font-weight: 700;
}
.cc-bang-gia { border-collapse: collapse; width: 100%; }
.cc-bang-gia td, .cc-bang-gia th { padding: .6rem .8rem; border-bottom: 1px solid rgba(22,39,94,.12); text-align: left; }

/* ---------- Câu hỏi thường gặp ---------- */
.wp-block-details { border-bottom: 1px solid rgba(22,39,94,.15); padding: .9rem 0; }
.wp-block-details summary { cursor: pointer; font-weight: 600; color: var(--wp--preset--color--xanh-dam); }
.wp-block-details[open] summary { margin-bottom: .5rem; }

/* ---------- Form ---------- */
.cc-form { display: grid; gap: .9rem; background: var(--wp--preset--color--trang); padding: clamp(1.1rem, 3vw, 2rem); border-radius: 16px; box-shadow: 0 8px 30px -18px rgba(22,39,94,.45); }
.cc-form p { margin: 0; }
.cc-form__o label, .cc-form__o legend { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--wp--preset--color--xanh-dam); }
.cc-form input:not([type=checkbox]):not([type=radio]), .cc-form select, .cc-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; padding: .75rem .9rem; border-radius: 10px;
	border: 1.5px solid rgba(22,39,94,.25); background: #fff; color: var(--wp--preset--color--muc);
}
.cc-form input:focus, .cc-form select:focus, .cc-form textarea:focus { outline: 2px solid var(--wp--preset--color--xanh-coban); outline-offset: 1px; }
.cc-form fieldset { border: 0; padding: 0; margin: 0; }
.cc-form__chon label { display: flex; gap: .55rem; align-items: center; font-weight: 400; color: inherit; margin: .35rem 0; }
.cc-form__dong-y label { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; }
.cc-form__dong-y input { margin-top: .25rem; flex: none; width: 1.1rem; height: 1.1rem; }
.cc-form__sao { color: var(--wp--preset--color--do); }
.cc-form__bay { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cc-form__loi { background: #fdecee; color: #8a1520; padding: .7rem .9rem; border-radius: 10px; }
.cc-form__gui button { width: 100%; }
.cc-form--xong { text-align: center; }
.cc-form__xong { font-size: 1.1rem; font-weight: 600; color: var(--wp--preset--color--xanh-dam); }
.cc-form__nut-doi { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem !important; }
.cc-don { background: var(--wp--preset--color--xanh-nhat); border-radius: 16px; padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.cc-don__trang-thai { font-size: 1.4rem; font-weight: 700; color: var(--wp--preset--color--xanh-coban); margin: .2rem 0 .4rem; }

/* ---------- Nút Zalo, Gọi nổi và thanh tab trên điện thoại ---------- */
.cc-noi { position: fixed; right: 18px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.cc-noi__nut {
	display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-radius: 999px; color: #fff;
	text-decoration: none; font-weight: 600; box-shadow: 0 8px 22px -8px rgba(22,39,94,.6);
}
.cc-noi__nut--zalo { background: var(--wp--preset--color--xanh-coban); }
.cc-noi__nut--goi { background: var(--wp--preset--color--do); }
.cc-noi__nut:hover { filter: brightness(1.08); color: #fff; }
.cc-tab { display: none; }
@media (max-width: 781px) {
	body { padding-bottom: 68px; }
	.cc-tab {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: #fff; border-top: 1px solid rgba(22,39,94,.12); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	}
	.cc-tab a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--wp--preset--color--xanh-dam); text-decoration: none; padding: 4px 0; }
	.cc-noi { bottom: 84px; right: 12px; }
	.cc-noi__nut--zalo { display: none; }
	.cc-noi__nut { padding: .75rem; }
	.cc-noi__nut span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media print { .cc-noi, .cc-tab { display: none; } }

/* ---------- Chữ nhỏ trên tiêu đề, bìa ảnh ---------- */
.cc-kicker { letter-spacing: .14em; font-weight: 700; color: var(--wp--preset--color--do); margin-bottom: .4rem; }
.wp-block-cover .cc-kicker { color: var(--wp--preset--color--kem); }
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3 { color: #fff; }
.wp-block-cover p { color: #fff; }
.cc-chu-nho { color: var(--wp--preset--color--xam); }
.cc-anh-hep { max-width: 520px; margin-inline: auto; }
.cc-the .wp-block-heading a { color: var(--wp--preset--color--xanh-dam); }
.cc-the .wp-block-heading a:hover { color: var(--wp--preset--color--do); }
.cc-the > .wp-block-image img { border-radius: 12px; }
.cc-tin-cay .wp-block-column { text-align: center; }
.cc-tin-cay strong { color: var(--wp--preset--color--xanh-dam); }
.wp-block-image img { border-radius: 14px; }
.wp-block-cover .wp-block-cover__image-background { border-radius: 0; }
.wp-block-quote { border-left: 4px solid var(--wp--preset--color--do); padding-left: 1.2rem; font-style: italic; }

/* ---------- Tên thương hiệu ở đầu trang ---------- */
.cc-thuong-hieu { margin: 0; font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.cc-thuong-hieu a { color: var(--wp--preset--color--xanh-coban); text-decoration: none; }
.wp-block-site-logo img { border-radius: 50%; }

/* ---------- Giang Côn Đảo: nút đầu trang, dòng "lợi ích → vì sao tin" ---------- */
.cc-nut-dau .wp-block-button__link { padding: .55rem 1rem; font-size: .92rem; }
.cc-loi-ich { list-style: none; padding-left: 0; display: grid; gap: .9rem; }
.cc-loi-ich li { padding: .9rem 1rem .9rem 1.1rem; border-left: 4px solid var(--wp--preset--color--do); background: var(--wp--preset--color--trang); border-radius: 0 12px 12px 0; }
.cc-loi-ich li strong { display: block; color: var(--wp--preset--color--xanh-dam); font-size: 1.05rem; margin-bottom: .2rem; }
.has-xanh-dam-background-color .cc-loi-ich li { color: var(--wp--preset--color--muc); }
.cc-nhan { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--xanh-coban); background: var(--wp--preset--color--xanh-nhat); padding: .2rem .6rem; border-radius: 999px; margin-bottom: .3rem; }
.cc-dong { font-size: 1.15rem; line-height: 1.6; }
.cc-nut-dau .wp-block-button__link { white-space: nowrap; }
@media (min-width: 600px) and (max-width: 1100px) { .wp-block-buttons.cc-nut-dau { display: none; } }
@media (max-width: 599px) { .cc-thuong-hieu { font-size: 1.2rem; white-space: nowrap; } .cc-nut-dau .wp-block-button__link { padding: .5rem .8rem; font-size: .85rem; } }
@media (min-width: 600px) and (max-width: 1000px) { header .wp-block-navigation { font-size: .9rem; --wp--style--block-gap: .9rem; } }
