/*
Theme Name: Kira Recovery WEBTONNEW
Theme URI: https://webtonnew.com/
Author: KiraPlatform
Description: Theme phuc hoi production cho WEBTONNEW.
Version: 1.0.0
Text Domain: kira-recovery-webtonnew-com
*/

:root {
  --ink: #111827;
  --muted: #64748b;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --brand: #c2410c;
  --brand-dark: #7c2d12;
  --accent: #fde047;
  --line: #e2e8f0;
  --content: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { display: block; max-width: 100%; height: auto; }
.site-wrap { width: var(--content); margin-inline: auto; }
.site-header, .header-inner, .site-logo, .hero-copy, .post-card, .prose { min-width: 0; }
.hero h1, .post-card h2, .post-card h3, .prose { overflow-wrap: anywhere; }
.site-header { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(67, 20, 7, .98); border-bottom: 3px solid var(--accent); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.site-logo img { width: 220px; max-height: 64px; object-fit: contain; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 10px 13px; color: #fff; font-size: 14px; font-weight: 700; border-radius: 4px; }
.site-nav a:hover { background: var(--brand); color: #fff; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid #475569; background: transparent; color: #fff; width: 42px; height: 42px; font-size: 22px; }
.hero { min-height: 510px; display: grid; align-items: center; color: #fff; background: linear-gradient(90deg, rgba(67, 20, 7, .93), rgba(194, 65, 12, .30)), var(--hero) center/cover; }
.hero-copy { max-width: 660px; padding-block: 72px; }
.hero-kicker { display: inline-block; margin-bottom: 15px; padding: 5px 10px; color: #1f2937; background: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.hero h1 { margin: 0 0 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.hero p { margin: 0 0 26px; max-width: 590px; color: #e2e8f0; font-size: 18px; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; color: #fff; background: var(--brand); border-radius: 4px; font-weight: 800; }
.button:hover { color: #111827; background: var(--accent); }
.section { padding: 58px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2, .entry-header h1, .archive-header h1 { margin: 0; font-size: 30px; line-height: 1.2; }
.section-head p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; color: #fff; background: #9a3412; border-top: 4px solid var(--accent); }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: #cbd5e1; font-size: 14px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15, 23, 42, .12); }
.post-card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: #dbe3ef; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px; }
.post-card h2, .post-card h3 { margin: 4px 0 9px; font-size: 19px; line-height: 1.35; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }
.post-meta { color: var(--brand); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.home-content { background: #fff; border-top: 1px solid var(--line); }
.prose { max-width: 840px; }
.prose h2 { margin-top: 34px; font-size: 27px; line-height: 1.25; }
.prose h3 { margin-top: 28px; font-size: 21px; }
.prose p, .prose li { color: #334155; }
.prose img { margin: 24px 0; border-radius: 6px; }
.page-layout { width: var(--content); margin: 42px auto 64px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.entry, .archive-main { min-width: 0; padding: 30px; background: #fff; border: 1px solid var(--line); }
.entry-header { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.entry-content { overflow-wrap: anywhere; }
.entry-content figure { margin: 28px 0; }
.entry-content figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.sidebar-widget { margin-bottom: 22px; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.sidebar-widget h3 { margin: 0 0 14px; font-size: 18px; }
.sidebar-widget ul { margin: 0; padding-left: 18px; }
.site-footer { color: #cbd5e1; background: #0f172a; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 38px; padding: 48px 0 32px; }
.footer-grid h2, .footer-grid h3 { margin: 0 0 14px; color: #fff; }
.footer-grid p { margin: 0; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid a { color: #cbd5e1; }
.footer-grid a:hover { color: var(--accent); }
.footer-partners { padding: 18px 0; border-top: 1px solid #334155; text-align: center; }
.footer-legal { padding: 18px 0; border-top: 1px solid #334155; color: #94a3b8; font-size: 13px; text-align: center; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 74px 0 auto; background: #111827; }
  .site-nav.is-open { display: block; }
  .site-nav ul { width: var(--content); margin-inline: auto; padding: 12px 0 18px; display: block; }
  .site-nav a { padding: 11px 6px; border-bottom: 1px solid #334155; border-radius: 0; }
  .feature-grid, .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --content: min(100% - 24px, 1180px); }
  .header-inner { min-height: 66px; }
  .site-logo img { width: 175px; max-height: 56px; }
  .site-nav { inset-block-start: 66px; }
  .hero { min-height: 460px; background-position: 60% center; }
  .hero-copy { padding-block: 56px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .section { padding: 42px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 8px; }
  .feature-grid, .posts-grid, .footer-grid { grid-template-columns: 1fr; }
  .page-layout { margin-top: 24px; }
  .entry, .archive-main { padding: 20px; }
  .entry-header h1, .archive-header h1 { font-size: 28px; }
}
