/*
Theme Name: Hợp Nhất Land
Theme URI: https://staging.hopnhatland.vn
Author: Hợp Nhất Land
Description: Theme marketing Hợp Nhất Land — editorial, photo-forward.
Version: 1.2.3
Text Domain: hopnhatland
*/

:root {
  --hnl-blue: #0a58a0;
  --hnl-blue-deep: #062f56;
  --hnl-red: #ed1b24;
  --hnl-ink: #101820;
  --hnl-muted: #667788;
  --hnl-line: #e6ebf0;
  --hnl-paper: #f7f9fb;
  --hnl-max: 1180px;
  --hnl-sans: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--hnl-sans);
  color: var(--hnl-ink);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hnl-blue);
  text-decoration: none;
}

a:hover {
  color: var(--hnl-red);
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - 2.5rem, var(--hnl-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--hnl-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--hnl-ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--hnl-line);
  background: #fff;
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font: inherit;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-menu a {
  color: var(--hnl-ink);
  font-weight: 500;
  font-size: 0.84rem;
  white-space: nowrap;
}

.primary-menu a:hover {
  color: var(--hnl-blue);
}

.primary-menu .menu-crm a {
  margin-left: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: var(--hnl-blue);
  color: #fff !important;
  font-weight: 600;
}

.primary-menu .menu-crm a:hover {
  background: var(--hnl-blue-deep);
}

.hotline-chip {
  color: var(--hnl-ink);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.hotline-chip:hover {
  color: var(--hnl-red);
}

.hero {
  position: relative;
  color: #fff;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.15) 0%, rgba(16, 24, 32, 0.78) 100%),
    var(--hero-image, var(--hnl-blue-deep)) center / cover no-repeat;
}

.hero-inner {
  padding: 5rem 0 3.5rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.35rem, 5.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero p {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
}

.btn-primary {
  background: var(--hnl-red);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  background: #c4141c;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.section {
  padding: 3.75rem 0;
}

.section-muted {
  background: var(--hnl-paper);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hnl-line);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hnl-muted);
  white-space: nowrap;
}

.section-head a:hover {
  color: var(--hnl-blue);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hnl-blue-deep);
  border-radius: 4px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 0.9rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-meta {
  color: var(--hnl-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-body h3 a {
  color: inherit;
}

.card-body h3 a:hover {
  color: var(--hnl-blue);
}

.card-excerpt {
  display: none;
}

.page-hero {
  background: var(--hnl-blue-deep);
  color: #fff;
  padding: 2.75rem 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.content-panel {
  padding: 2.5rem 0 3.25rem;
}

.entry-content {
  font-size: 1.02rem;
  line-height: 1.7;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  letter-spacing: -0.02em;
}

.entry-content img {
  border-radius: 4px;
  margin: 1.1rem 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content td,
.entry-content th {
  border: 1px solid var(--hnl-line);
  padding: 0.5rem 0.65rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.75rem;
}

.contact-card,
.form-card {
  border: 1px solid var(--hnl-line);
  border-radius: 8px;
  padding: 1.4rem;
  background: #fff;
}

.contact-card dt {
  font-weight: 700;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hnl-muted);
}

.contact-card dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

.form-card label {
  display: block;
  font-weight: 600;
  margin: 0.7rem 0 0.3rem;
  font-size: 0.9rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--hnl-line);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.form-card button {
  margin-top: 1rem;
}

.cta-strip {
  padding: 0 0 3.75rem;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem 1.75rem;
  background: var(--hnl-blue-deep);
  color: #fff;
  border-radius: 8px;
}

.cta-strip-inner h2 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cta-strip-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-strip-inner a:not(.btn) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-strip .btn-primary {
  flex-shrink: 0;
}

.site-footer {
  background: #0b1520;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.site-footer a {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.pagination {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.pagination a,
.pagination span {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--hnl-line);
  border-radius: 6px;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .card-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    width: 100%;
  }

  .primary-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.35rem 0 0.75rem;
    gap: 0.65rem;
  }

  .hotline-chip {
    order: -1;
    margin-left: auto;
  }

  .cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    max-width: 14ch;
  }
}
