/*
Theme Name: VIET3S
Theme URI: https://viet3s.com.vn
Author: VIET3S
Author URI: https://viet3s.com.vn
Description: Theme WordPress chính thức cho Công ty TNHH VIET 3S — dịch vụ bảo vệ, vệ sinh công nghiệp và giải pháp nhân lực. Thiết kế theo mockup thương hiệu: tông màu xanh navy & vàng gold, bố cục hero, thẻ dịch vụ, dải thống kê, đối tác tiêu biểu và banner CTA.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: viet3s
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. CSS VARIABLES / DESIGN TOKENS
   ========================================================= */
:root{
	--navy: #0f1c3d;
	--navy-dark: #0a1530;
	--navy-2: #142a56;
	--navy-soft: #1a3468;
	--gold: #c9a227;
	--gold-dark: #a9861d;
	--gold-light: #e4c65b;
	--white: #ffffff;
	--offwhite: #f6f7fa;
	--gray-100: #f1f2f5;
	--gray-300: #d9dce3;
	--gray-500: #6b7280;
	--text: #1f2733;
	--text-soft: #4b5566;
	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 20px;
	--shadow: 0 10px 30px rgba(15,28,61,.08);
	--shadow-lg: 0 20px 45px rgba(15,28,61,.14);
	--container: 1180px;
	--font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--white);
	line-height: 1.65;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6{ font-family: var(--font); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p{ margin: 0 0 1.1em; color: var(--text-soft); }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text{ position:absolute !important; clip:rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden; }
::selection{ background: var(--gold-light); color: var(--navy); }

.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--soft{ background: var(--offwhite); }
.section-head{ max-width: 680px; margin: 0 0 44px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow{
	display: inline-block;
	color: var(--gold-dark);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: 13px;
	margin-bottom: 12px;
}
.section-title{ font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.section-desc{ color: var(--text-soft); font-size: 17px; }

/* =========================================================
   2. BUTTONS
   ========================================================= */
.btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
	line-height: 1;
	white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-gold{ background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(201,162,39,.35); }
.btn-gold:hover{ background: var(--gold-dark); color: var(--navy); }
.btn-outline{ background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline:hover{ background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline-navy{ background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover{ background: var(--navy); color: var(--white); }
.btn-sm{ padding: 10px 20px; font-size: 14px; }

/* =========================================================
   3. TOP BAR + HEADER
   ========================================================= */
.topbar{
	background: var(--navy-dark, #0a1530);
	color: rgba(255,255,255,.85);
	font-size: 13.5px;
}
.topbar .container{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.topbar-info{ display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-info a{ color: rgba(255,255,255,.85); }
.topbar-info a:hover{ color: var(--gold-light); }
.topbar-info span{ display: inline-flex; align-items: center; gap: 6px; }

.site-header{
	position: sticky; top: 0; z-index: 999;
	background: var(--white);
	box-shadow: 0 1px 0 rgba(15,28,61,.08);
}
.site-header .container{ display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }

.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ max-height: 46px; width: auto; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-name{ font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--navy); }
.brand-tagline{ font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }

.primary-nav{ display: flex; align-items: center; gap: 30px; }
.primary-nav ul{ display: flex; align-items: center; gap: 28px; }
.primary-nav a{ font-weight: 600; color: var(--text); font-size: 15px; padding: 6px 0; position: relative; }
.primary-nav a:hover{ color: var(--navy); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a{ color: var(--gold-dark); }
.primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after{
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold);
}
.header-cta{ display: flex; align-items: center; gap: 14px; }
.menu-toggle{ display: none; background: none; border: 2px solid var(--navy); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.menu-toggle span{ display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

@media (max-width: 900px){
	.primary-nav{ position: fixed; inset: 70px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 24px; transform: translateY(-110%); transition: transform .25s ease; overflow-y: auto; }
	.primary-nav.is-open{ transform: translateY(0); }
	.primary-nav ul{ flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
	.primary-nav ul li{ width: 100%; border-bottom: 1px solid var(--gray-100); }
	.primary-nav ul a{ display: block; padding: 14px 4px; }
	.menu-toggle{ display: inline-block; }
	.header-cta .btn-gold-label{ display: none; }
	.topbar-info{ gap: 12px; }
}

/* =========================================================
   4. HERO
   ========================================================= */
.hero{
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
	color: var(--white);
	position: relative;
	overflow: hidden;
	border-radius: 0 0 28px 28px;
}
.hero::after{
	content: "";
	position: absolute; right: -120px; top: -120px;
	width: 460px; height: 460px; border-radius: 50%;
	background: radial-gradient(circle, rgba(201,162,39,.20) 0%, rgba(201,162,39,0) 70%);
}
.hero-inner{ position: relative; z-index: 1; padding: 80px 0; max-width: 720px; }
.hero .eyebrow{ color: var(--gold-light); }
.hero h1{ color: var(--white); font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 20px; }
.hero h1 .accent{ color: var(--gold); }
.hero p.lead{ color: rgba(255,255,255,.82); font-size: 18px; max-width: 560px; margin-bottom: 32px; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   5. ICON CARDS (feature / service grids)
   ========================================================= */
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px){ .grid-3{ grid-template-columns: 1fr; } .grid-2{ grid-template-columns: 1fr; } }

.icard{
	background: var(--white);
	border: 1px solid var(--gray-100);
	border-radius: var(--radius-lg);
	padding: 34px 28px;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.icard:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.icard .icon{
	width: 56px; height: 56px; border-radius: 16px;
	background: linear-gradient(135deg, var(--gold-light), var(--gold));
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 20px; color: var(--navy); flex-shrink: 0;
}
.icard .icon svg{ width: 26px; height: 26px; stroke: var(--navy); }
.icard h3{ font-size: 19px; margin-bottom: 10px; }
.icard p{ margin-bottom: 14px; font-size: 15px; }
.icard .more{ color: var(--gold-dark); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.icard.icard--dark{ background: var(--navy); border-color: var(--navy); }
.icard.icard--dark h3, .icard.icard--dark p{ color: var(--white); }

/* =========================================================
   6. STATS BAR
   ========================================================= */
.stats{
	background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
	border-radius: var(--radius-lg);
	color: var(--white);
	padding: 48px 40px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	text-align: left;
}
.stats .stat-num{ font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.stats .stat-label{ color: rgba(255,255,255,.85); font-size: 15px; }
@media (max-width: 700px){ .stats{ grid-template-columns: 1fr; text-align: center; } }

/* =========================================================
   7. PARTNERS / LOGOS
   ========================================================= */
.partners-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px){ .partners-grid{ grid-template-columns: repeat(2, 1fr); } }
.partner-logo{
	border: 1px solid var(--gray-100);
	border-radius: var(--radius);
	background: var(--white);
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 18px;
	filter: grayscale(20%);
	transition: filter .2s ease, box-shadow .2s ease;
}
.partner-logo:hover{ filter: grayscale(0); box-shadow: var(--shadow); }
.partner-logo img{ max-height: 100%; object-fit: contain; }
.partner-logo.placeholder{ color: var(--gray-500); font-weight: 700; text-align: center; font-size: 13px; }

/* =========================================================
   8. CTA BAND
   ========================================================= */
.cta-band{
	background: var(--navy);
	color: var(--white);
	border-radius: var(--radius-lg);
	padding: 64px 40px;
	text-align: center;
}
.cta-band h2{ color: var(--white); font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 14px; }
.cta-band p{ color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 28px; }

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer{ background: var(--navy); color: rgba(255,255,255,.78); padding-top: 64px; }
.footer-grid{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand .brand-name{ color: var(--white); }
.footer-brand p{ color: rgba(255,255,255,.68); margin-top: 14px; font-size: 14.5px; }
.footer-col h4{ color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer-col ul li{ margin-bottom: 10px; }
.footer-col a{ color: rgba(255,255,255,.72); font-size: 14.5px; }
.footer-col a:hover{ color: var(--gold-light); }
.footer-col .contact-item{ display: flex; gap: 10px; margin-bottom: 12px; font-size: 14.5px; color: rgba(255,255,255,.78); align-items: flex-start; }
.footer-col .contact-item svg{ width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; stroke: var(--gold); }
.footer-bottom{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-bottom a{ color: rgba(255,255,255,.72); }
.social-links{ display: flex; gap: 10px; }
.social-links a{
	width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
	display: flex; align-items: center; justify-content: center;
}
.social-links a:hover{ background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* =========================================================
   10. GENERIC PAGE CONTENT (the_content styling)
   ========================================================= */
.page-hero{
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
	color: var(--white); padding: 56px 0; border-radius: 0 0 28px 28px; margin-bottom: 56px;
}
.page-hero h1{ color: var(--white); margin: 0; font-size: clamp(26px, 3.6vw, 38px); }
.page-hero .breadcrumb{ color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 10px; }
.page-hero .breadcrumb a{ color: rgba(255,255,255,.85); }

.entry-content{ max-width: 860px; margin: 0 auto; }
.entry-content.entry-content--wide{ max-width: var(--container); }
.entry-content h2{ font-size: 26px; margin-top: 1.6em; }
.entry-content h3{ font-size: 20px; margin-top: 1.4em; }
.entry-content ul{ margin: 0 0 1.2em; padding-left: 0; }
.entry-content ul li{ position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-soft); }
.entry-content ul li::before{ content: "✔"; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-weight: 700; }
.entry-content ol{ padding-left: 22px; margin-bottom: 1.2em; }
.entry-content ol li{ margin-bottom: 10px; color: var(--text-soft); }
.entry-content a:not(.btn){ color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.entry-content table{ width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry-content table th, .entry-content table td{ border: 1px solid var(--gray-300); padding: 12px 16px; text-align: left; font-size: 15px; }
.entry-content table th{ background: var(--navy); color: var(--white); }
.entry-content table tr:nth-child(even) td{ background: var(--offwhite); }
.entry-content .wp-block-columns{ display: flex; gap: 28px; }
.entry-content .wp-block-button__link{
	display: inline-flex; align-items:center; padding: 14px 28px; border-radius: 999px; font-weight: 700; background: var(--gold); color: var(--navy);
}
.entry-content figure{ margin: 1.6em 0; }
.entry-content figure img{ border-radius: var(--radius); }
.entry-content blockquote{ border-left: 4px solid var(--gold); margin: 1.6em 0; padding: 10px 24px; color: var(--text-soft); font-style: italic; background: var(--offwhite); border-radius: 0 var(--radius) var(--radius) 0; }

/* =========================================================
   11. CONTACT PAGE
   ========================================================= */
.contact-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-info-card{ background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 36px; }
.contact-info-card h3{ color: var(--white); }
.contact-info-card .contact-item{ display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-card .contact-item svg{ width: 22px; height: 22px; stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-info-card .contact-item span{ color: rgba(255,255,255,.85); font-size: 15px; }
.contact-form{ background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.contact-form label{ display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.contact-form input, .contact-form select, .contact-form textarea{
	width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
	font-family: var(--font); font-size: 15px; margin-bottom: 18px; background: var(--offwhite);
}
.contact-form textarea{ min-height: 130px; resize: vertical; }
.contact-form .form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .contact-form .form-row{ grid-template-columns: 1fr; } }
.form-notice{ padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14.5px; }
.form-notice.success{ background: #eaf7ee; color: #1e7b3b; border: 1px solid #b9e5c6; }
.form-notice.error{ background: #fdeceb; color: #b3261e; border: 1px solid #f6c6c2; }
.map-embed{ border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px; box-shadow: var(--shadow); }
.map-embed iframe{ width: 100%; height: 380px; border: 0; display: block; }

/* =========================================================
   12. LEGAL TABLE PAGE
   ========================================================= */
.legal-table{ width: 100%; border-collapse: collapse; margin-top: 20px; }
.legal-table th, .legal-table td{ padding: 16px 20px; border: 1px solid var(--gray-300); text-align: left; font-size: 15px; }
.legal-table th{ background: var(--navy); color: var(--white); width: 34%; }
.legal-table tr:nth-child(even) td{ background: var(--offwhite); }

/* =========================================================
   13. UTILITIES
   ========================================================= */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.mb-0{ margin-bottom: 0; }
.hidden{ display: none !important; }

/* =========================================================
   14. WORDPRESS CORE
   ========================================================= */
.alignwide{ max-width: var(--container); }
.alignfull{ width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text{ font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 6px; }
