/*!
Theme Name: ROX Signature
Theme URI: https://roxsignature.vn/
Author: ROX Signature
Description: Theme ROX Signature – đồng bộ từ bản HTML (Bootstrap 5, GSAP, Coverflow, Slick). Header + #hero định nghĩa trong header.php, trang chủ dựng từ template-parts/home/*.
Version: 1.0.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: roxsig
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

roxsig is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
*/

/* --------------------------------------------------------------
   Giao diện chính nằm ở assets/css/style.css + assets/css/home.css.
   Header & #hero: inline trong header.php.
   File này chỉ giữ các class bắt buộc của WordPress + trang con.
-------------------------------------------------------------- */

/* Accessibility */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
#primary[tabindex="-1"]:focus { outline: 0; }

/* Alignments */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }
.alignwide, .alignfull { max-width: none; }

/* Media / captions / gallery */
.wp-caption { margin-bottom: 1.5em; max-width: 100%; }
.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }
.wp-caption .wp-caption-text, .wp-element-caption { margin: 0.8075em 0; font-size: 14px; opacity: .7; }
.gallery { display: grid; grid-gap: 1.5em; margin-bottom: 1.5em; }
.gallery-item { display: inline-block; text-align: center; width: 100%; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.sticky, .bypostauthor { display: block; }
embed, iframe, object { max-width: 100%; }
.custom-logo-link { display: inline-block; }

/* --------------------------------------------------------------
   Trang con (page, single, archive, search, 404)
-------------------------------------------------------------- */
body:not(.home) .site {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
body:not(.home) .site > #site-header,
body:not(.home) .site > #nav-offcanvas,
body:not(.home) .site > #hero,
body:not(.home) .site > #footer,
body:not(.home) .site > .skip-link,
body:not(.home) .site > [data-elementor-type] { flex: 0 0 100%; }

body:not(.home) .site-main {
	-flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	-padding: 64px 20px 80px;
	padding: 0px;
}

body:not(.home) .widget-area {
	flex: 0 0 300px;
	padding: 64px 20px 80px;
}
@media (max-width: 991px) {
	body:not(.home) .widget-area { flex-basis: 100%; padding-top: 0; }
}

.site-main .entry-title,
.site-main .page-title {
	font-family: var(--font-sagire);
	text-transform: uppercase;
	font-weight: 400;
	color: var(--color-dark-gold);
}
.site-main article + article { /*margin-top: 48px; padding-top: 48px; border-top: 1px solid rgba(39,39,39,.1); */}
.entry-meta, .entry-footer { font-size: 14px; color: rgba(39,39,39,.6); }
.entry-meta a, .entry-footer a { color: var(--color-dark-gold); }
.entry-content { line-height: 1.75; }
.entry-content a { color: var(--color-dark-gold); text-decoration: underline; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content img { height: auto; }
.post-thumbnail img { width: 100%; height: auto; margin-bottom: 24px; }

.nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.nav-links a, .page-numbers { color: var(--color-dark-gold); }
.page-numbers.current { color: var(--color-black); font-weight: 500; }

.widget { margin-bottom: 40px; }
.widget-title { font-family: var(--font-sagire); font-size: 20px; text-transform: uppercase; color: var(--color-dark-gold); }
.widget ul { padding-left: 0; list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid rgba(39,39,39,.08); }
.widget a { color: var(--color-black); }
.widget a:hover { color: var(--color-dark-gold); }

.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; padding: 10px 14px; border: 1px solid rgba(39,39,39,.2); }
.search-form .search-submit { padding: 10px 18px; border: 0; background: var(--color-dark-gold); color: #fff; }

.comment-list { padding-left: 0; list-style: none; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 14px; border: 1px solid rgba(39,39,39,.2);
}
.comment-form .submit { padding: 10px 22px; border: 0; background: var(--color-dark-gold); color: #fff; }

/* ==============================================================
   TRANG CHI TIẾT & DANH MỤC
   (chuyển từ <style> inline của single-project.php, single.php, category.php)
============================================================== */

/* ---------- Hiệu ứng xuất hiện (dùng chung) ----------
   .pj-js được thêm vào <html> trong <head> khi JS chạy; GSAP ở assets/js/roxsig-pages.js
   sẽ hiện lại. Không có JS/GSAP → nội dung hiện bình thường. */
.pj-js .pj-up,
.pj-js .post-content > * { opacity: 0; transform: translateY(40px); }
.pj-js .pj-hero-bg { transform: scale(1.12); }
.pj-js .pj-img { clip-path: inset(100% 0 0 0); }
.pj-js .cat-hero__line { transform: scaleX(0); }
.pj-js .cat-slider .swiper { opacity: 0; transform: translateY(60px); }
.pj-hero-bg { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
	.pj-js .pj-up, .pj-js .post-content > *, .pj-js .pj-hero-bg, .pj-js .pj-img,
	.pj-js .cat-hero__line, .pj-js .cat-slider .swiper { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Link gạch chân "Tìm hiểu thêm" ---------- */
.link-line { display: inline-block; font-size: 13px; font-weight: 500; text-decoration: none; padding-bottom: 4px; position: relative; }
.link-line::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s ease; }
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Slide "Dự án khác" / "Bài viết khác" (dùng chung) ---------- */
.related { background: #F4EEE5; padding: 80px 0; }
.related__container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.related__head { font-size: 24px; font-weight: 500; color: #272727; margin-bottom: 40px; }
.related .swiper { overflow: hidden; }
.related__item { display: block; text-decoration: none; }
.related__img { aspect-ratio: 1 / .94; overflow: hidden; background: #e8dfd2; }
.related__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.related__item:hover .related__img img { transform: scale(1.05); }
.related__title { margin: 28px 0 0; font-size: 28px; line-height: 1.2; color: #98854E; }
.related__date { display: block; margin-top: 28px; font-size: 14px; color: rgb(21 21 21 / 60%); }
/* biến thể bài viết */
.related--post .related__head { font-weight: 600; color: #98854E; text-transform: uppercase; }
.related--post .related__title {
	margin-top: 16px; font-family: 'Noto Sans', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; color: #272727; transition: color .3s;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related--post .related__item:hover .related__title { color: #98854E; }
@media (max-width: 767.98px) {
	.related { padding: 56px 0; }
	.related__head { margin-bottom: 24px; }
	.related__title { font-size: 22px; margin-top: 16px; }
	.related__date { margin-top: 16px; }
	.related--post .related__head { font-size: 20px; }
	.related--post .related__title { font-size: 16px; margin-top: 8px; }
}

/* ---------- single-project.php ---------- */
.single-project .hero { overflow: hidden; }
.single-project .hero:before { z-index: -1; }
.single-project .hero__cta { z-index: 10; }
.project-content { min-height: 100vh; max-width: 1130px; }
.pro-text ul { margin: 0; padding: 0; }
.pro-text li { list-style: none; display: flex; align-items: flex-start; gap: 20px; width: 100%; padding: 7px 0; border-bottom: 1px solid #98854E1A; color: rgb(21 21 21 / 60%); }
.pro-text li strong { flex: 0 0 125px; max-width: 125px; color: #272727; } /* cố định, không co theo nội dung */
.pro-text li span { flex: 1 1 auto; min-width: 0; }
.pro-text .btn-hero--line { border: 1px solid rgb(0 0 0 / 10%); }
@media (max-width: 767.98px) {
	.pro-text li { gap: 12px; }
	.pro-text li strong { flex-basis: 110px; max-width: 110px; }
}

/* ---------- single.php (bài viết) ---------- */
.post-banner { position: relative; overflow: hidden; }
.post-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-wrap { max-width: 1130px; margin: 0 auto; padding: 0 16px; }
.post-head { padding: 64px 0 0; }
.post-title { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.2; color: #272727; text-transform: uppercase; margin: 0 0 40px; font-weight: 400; }
.post-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 28px; border-bottom: 1px solid rgb(0 0 0 / 6%); }
.post-date { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4a4a4a; }
.post-date img { width: 16px; height: 16px; }

.post-share { display: flex; align-items: center; gap: 24px; font-size: 14px; color: #4a4a4a; }
.post-share__btn { display: inline-flex; align-items: center; text-decoration: none; color: #151515; font-weight: 700; font-size: 12px; transition: opacity .3s; }
.post-share__btn:hover { opacity: .7; color: #151515; }
.post-share__btn img { width: 20px; height: 20px; display: block; }
.post-share--bottom { padding: 40px 0 80px; }

.post-content { padding-top: 36px; font-size: 14px; line-height: 1.6; color: rgb(21 21 21 / 75%); }
.post-content > * { margin-bottom: 20px; }
.post-content strong, .post-content b { color: #272727; }
.post-content h2, .post-content h3, .post-content h4 { font-size: 15px; font-weight: 700; color: #272727; margin: 32px 0 12px; }
.post-content img { max-width: 100%; height: auto; display: block; }
.post-content figure, .post-content .wp-block-image { margin: 32px 0; }
.post-content .aligncenter { margin-left: auto; margin-right: auto; }
.post-content .alignleft { float: left; margin: 0 40px 20px 0; max-width: 50%; }
.post-content .alignright { float: right; margin: 0 0 20px 40px; max-width: 50%; }
.post-content::after { content: ''; display: table; clear: both; }
.post-content .wp-block-columns { gap: 40px; align-items: center; }
@media (max-width: 767.98px) {
	.post-head { padding-top: 40px; }
	.post-title { margin-bottom: 24px; }
	.post-content .alignleft, .post-content .alignright { float: none; max-width: 100%; margin: 0 0 20px; }
	.post-share--bottom { padding: 32px 0 56px; }
}

/* ---------- category.php ---------- */
.cat-hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; max-height: 900px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.cat-hero__bg { position: absolute; inset: 0; z-index: 0; }
.cat-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-hero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgb(0 0 0 / 25%) 0%, transparent 30%, transparent 55%, rgb(0 0 0 / 45%) 100%); }
.cat-hero__inner { position: relative; z-index: 2; width: 100%; box-sizing: border-box; max-width: 1160px; margin: 0 auto; padding: 0 16px 64px; }
.cat-hero__line { height: 1px; background: rgb(255 255 255 / 30%); margin-bottom: 64px; transform-origin: left center; }
.cat-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.cat-hero__title { font-size: clamp(20px, 3.4vw, 30px); line-height: 1.15; max-width: 560px; margin: 0; font-weight: 400; color: #fff; }
.cat-hero__title a { color: inherit; text-decoration: none; }
.cat-hero__side { max-width: 440px; font-size: 14px; line-height: 1.55; }
.cat-hero__side p { margin: 0 0 28px; color: rgb(255 255 255 / 90%); }
.cat-hero .link-line { color: #fff; }
@media (max-width: 767.98px) {
	.cat-hero__inner { padding-bottom: 40px; }
	.cat-hero__line { margin-bottom: 32px; }
	.cat-hero__row { flex-direction: column; align-items: flex-start; gap: 20px; }
	.cat-hero__side { width: 100%; max-width: none; }
	.cat-hero__side p { margin-bottom: 16px; }
}

.cat-slider { --sw: min(62.4vw, 900px); --ratio: .556; --pad: 170px; padding: var(--pad) 0; overflow: hidden; position: relative; }
.cat-slider .swiper { overflow: visible; }
.cat-slider .swiper-slide { width: var(--sw); }
.cat-card__img { display: block; aspect-ratio: 1 / var(--ratio); overflow: hidden; background: #eee; transform: scale(.72); transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper-slide-active .cat-card__img { transform: scale(1); }
.cat-card__body { padding: 32px 44px 0; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.swiper-slide-active .cat-card__body { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
.cat-card__title { font-size: 22px; font-weight: 400; line-height: 1.3; margin: 0 0 8px; color: #272727; }
.cat-card__title a { color: inherit; text-decoration: none; }
.cat-card__body .link-line { color: #272727; }
.cat-card__body .link-line::after { transform: scaleX(1); background: rgb(0 0 0 / 25%); }
.cat-card__body .link-line:hover::after { background: #98854E; }

.cat-nav { --off: 80px; position: absolute; z-index: 5; top: calc(var(--pad) + var(--sw) * var(--ratio) / 2); transform: translateY(-50%);
	width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; transition: opacity .3s; }
.cat-nav img { width: 8px; height: 24px; display: block; transition: transform .3s; }
.cat-nav--prev { left: calc(50% - var(--sw) / 2 - var(--off)); }
.cat-nav--next { right: calc(50% - var(--sw) / 2 - var(--off)); }
.cat-nav--next img { transform: rotate(180deg); }
.cat-nav--prev:hover img { transform: translateX(-4px); }
.cat-nav--next:hover img { transform: rotate(180deg) translateX(-4px); }
.cat-nav.swiper-button-disabled { opacity: .25; cursor: default; }
.cat-empty { padding: 120px 16px; text-align: center; color: #666; }
@media (max-width: 991.98px) {
	.cat-slider { --sw: 78vw; --pad: 100px; }
	.cat-nav { --off: 52px; }
}
@media (max-width: 767.98px) {
	.cat-slider { --sw: 76vw; --pad: 56px; }
	.cat-card__img { transform: scale(.86); }
	.cat-card__body { padding: 20px 8px 0; }
	.cat-card__title { font-size: 18px; }
	.cat-nav { display: none; } /* mobile: vuốt */
}
