:root {
  --primary: #8b5e3c;
  --primary-dark: #5d3a1f;
  --accent: #c9974d;
  --bg: #f7f3ee;
  --text: #2b2118;
  --muted: #6f6257;
  --white: #ffffff;
  --border: #e7ddd2;
  --shadow: 0 10px 30px rgba(43, 33, 24, 0.08);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: var(--primary-dark);
  color: #f5e8d8;
  font-size: 14px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-dark);
}
.logo span { color: var(--accent); }
.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-menu a {
  font-weight: 700;
  color: var(--text);
}
.nav-menu a.active,
.nav-menu a:hover { color: var(--primary); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--white);
}
.btn-outline:hover { background: #fbf7f2; }

.hero {
  background:
    radial-gradient(circle at top left, rgba(201,151,77,.18), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #f7f3ee 100%);
  padding: 72px 0 44px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  margin: 12px 0 16px;
}
.hero p.lead,
.page-hero p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero-card, .card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.stat {
  padding: 18px;
  border-radius: 16px;
  background: #fcfaf7;
  border: 1px solid var(--border);
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 28px;
  color: var(--primary-dark);
}
.section {
  padding: 60px 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}
.section-head p { color: var(--muted); }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card, .news-card, .feature-card, .contact-card, .social-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-card h3, .news-card h3, .feature-card h3, .contact-card h3, .social-card h3 {
  margin-top: 0;
  font-size: 22px;
}
.muted { color: var(--muted); }
.bullets {
  padding-left: 18px;
  margin: 14px 0 0;
}
.bullets li { margin-bottom: 8px; }

.newsfeed {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.sidebar-box, .feed-post, .right-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sidebar-box, .right-box { padding: 20px; }
.feed-post { overflow: hidden; }
.feed-post .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(139,94,60,.16), rgba(201,151,77,.28));
}
.feed-post .content { padding: 20px; }
.feed-post h3 {
  margin: 0 0 10px;
  font-size: 26px;
}
.tag {
  display: inline-flex;
  padding: 7px 12px;
  background: #fbf7f2;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 8px 8px 0;
  font-size: 13px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.cta-banner {
  padding: 32px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: 28px;
}
.cta-banner p { color: rgba(255,255,255,.86); }

.page-hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(circle at top right, rgba(201,151,77,.15), transparent 25%),
    linear-gradient(180deg, #fffdf9 0%, #f7f3ee 100%);
}
.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
.content-main, .content-side {
  align-self: start;
}
.richtext {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.richtext h2, .richtext h3 { color: var(--primary-dark); }
.richtext p { margin: 0 0 16px; }
.quote-box {
  padding: 20px;
  border-left: 5px solid var(--accent);
  background: #fcfaf7;
  border-radius: 14px;
  margin: 20px 0;
}
.sticky-box {
  position: sticky;
  top: 100px;
}

.footer {
  background: #241a12;
  color: #efe4d3;
  padding: 46px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 22px;
}
.footer h3, .footer h4 {
  color: #fff7ea;
  margin-top: 0;
}
.footer a { color: #efe4d3; }
.footer small {
  display: block;
  margin-top: 24px;
  color: #cabba7;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}
.float-btn {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
}
.float-btn.phone { background: #fff5ec; }
.float-btn.zalo { background: #eef7ff; }
.float-btn.msg { background: #f2efff; }

.mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hero-grid,
  .newsfeed,
  .content-wrap,
  .footer-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .sticky-box { position: static; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-menu.show { display: flex; }
  .mobile-toggle { display: inline-flex; }
  .stats { grid-template-columns: 1fr; }
  .hero, .section, .page-hero { padding-top: 42px; }
}
