/*
Theme Name: Phú Quý Clean
Theme URI: https://vesinhcongnghiepquangngai.vn
Author: Vệ Sinh Công Nghiệp Phú Quý
Description: Theme riêng cho website Vệ Sinh Công Nghiệp Quảng Ngãi – nhẹ, chuẩn SEO, tối ưu di động.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: phuquy
License: GPL-2.0-or-later
*/

:root {
	--red: #c8102e;
	--red-dark: #9e0b22;
	--yellow: #ffc20e;
	--yellow-soft: #fff6d6;
	--ink: #1d2433;
	--muted: #5b6474;
	--line: #e7e9ee;
	--bg: #ffffff;
	--bg-alt: #f6f7f9;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(29, 36, 51, .08);
	--wrap: 1180px;
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; border: 2px solid transparent; transition: .2s; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd34d; color: var(--ink); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--red); }

/* Topbar + header */
.topbar { background: var(--red); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; flex: none; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img, .brand svg { width: 54px; height: 54px; }
.brand-text strong { display: block; font-size: 1.05rem; color: var(--red); line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { display: block; color: var(--muted); font-size: .78rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--red); background: var(--yellow-soft); }
.main-nav li { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: var(--shadow); border-radius: 10px; padding: 8px; flex-direction: column; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 3px; transition: .2s; }

@media (max-width: 960px) {
	.menu-toggle { display: block; }
	.header-cta .btn { display: none; }
	.main-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff; transform: translateX(100%); transition: .25s; padding: 80px 16px 24px; box-shadow: -10px 0 30px rgba(0,0,0,.15); overflow-y: auto; z-index: 60; }
	.main-nav.open { transform: none; }
	.main-nav ul { flex-direction: column; }
	.main-nav .sub-menu { display: flex; position: static; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
	.topbar .tb-address { display: none; }
	body.nav-open .menu-toggle { position: relative; z-index: 70; }
	body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
	body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(158,11,34,.95) 0%, rgba(200,16,46,.82) 45%, rgba(29,36,51,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(60px, 10vw, 120px); padding-bottom: clamp(60px, 10vw, 120px); }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: 1.15rem; opacity: .95; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: .95rem; }
.hero-badges span { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); background: var(--yellow-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero .eyebrow { background: var(--yellow); color: var(--ink); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: .2s; border: 1px solid var(--line); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(29,36,51,.12); }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--yellow-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--red); }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.more { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.card-icon { width: 100%; aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(135deg, var(--yellow-soft), #fff); color: var(--red); }
.card-icon svg { width: 72px; height: 72px; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media .stat { position: absolute; right: -14px; bottom: -18px; background: var(--yellow); color: var(--ink); border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow); font-weight: 700; }
.split-media .stat b { display: block; font-size: 1.9rem; color: var(--red); line-height: 1; }
.checklist { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media .stat { right: 10px; } }

/* Features */
.feature { text-align: center; padding: 28px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.feature .ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--yellow); }
.feature .ico svg { width: 30px; height: 30px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step { position: relative; padding: 26px 20px 20px; background: #fff; border-radius: var(--radius); border-top: 4px solid var(--yellow); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 2.2rem; font-weight: 800; color: var(--red); opacity: .9; display: block; line-height: 1; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* CTA band */
.cta-band { background: linear-gradient(90deg, var(--red-dark), var(--red)); color: #fff; padding: 46px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; opacity: .9; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.contact-info { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-info h3 { color: var(--yellow); }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-info li { display: flex; gap: 12px; }
.contact-info svg { width: 22px; height: 22px; color: var(--yellow); flex: none; margin-top: 3px; }
.contact-info a { color: #fff; font-weight: 700; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/7; background: var(--bg-alt); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .map-embed { aspect-ratio: 4/3; } }

/* Forms (Contact Form 7) */
.wpcf7 label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.wpcf7 input[type=text], .wpcf7 input[type=tel], .wpcf7 input[type=email], .wpcf7 select, .wpcf7 textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg-alt); }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); background: #fff; }
.wpcf7 textarea { min-height: 120px; }
.wpcf7 input[type=submit] { background: var(--red); color: #fff; border: 0; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--red-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Page / post */
.page-hero { background: linear-gradient(100deg, var(--red-dark), var(--red)); color: #fff; padding: 46px 0; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.breadcrumbs { font-size: .9rem; opacity: .9; margin-top: 6px; }
.breadcrumbs a { color: var(--yellow); }
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.content-area.full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .content-area { grid-template-columns: 1fr; } }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content img { border-radius: 10px; }
.entry-content ul { padding-left: 1.2em; }
.entry-content .wp-block-image { margin: 1.5em 0; }
.entry-meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.sidebar .widget, .side-box { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.side-box.hot { background: var(--red); color: #fff; text-align: center; }
.side-box.hot h3 { color: var(--yellow); }
.side-box.hot a.big { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; margin: 8px 0 14px; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li a { display: block; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 600; }
.side-box li a:hover { color: var(--red); }
.pagination { margin-top: 32px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--red); color: #fff; }

/* Footer */
.site-footer { background: #141a26; color: #c4c9d4; padding: 60px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--yellow); }
.site-footer a { color: #c4c9d4; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--yellow); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding: 18px 0; font-size: .85rem; text-align: center; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating contact */
.float-contact { position: fixed; right: 16px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 12px; }
.float-contact a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.float-contact svg { width: 26px; height: 26px; }
.float-contact .fc-phone { background: var(--red); animation: pulse 1.8s infinite; }
.float-contact .fc-zalo { background: #0068ff; font-weight: 800; font-size: .8rem; }
.float-contact .fc-fb { background: #1877f2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,16,46,.6); } 70% { box-shadow: 0 0 0 16px rgba(200,16,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.mobile-callbar { display: none; }
@media (max-width: 640px) {
	.mobile-callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; }
	.mobile-callbar a { padding: 14px; text-align: center; font-weight: 700; color: #fff; }
	.mobile-callbar .mc-call { background: var(--red); }
	.mobile-callbar .mc-zalo { background: #0068ff; }
	.float-contact { display: none; }
	body { padding-bottom: 52px; }
}
