/* Dong Phat Solutions — corporate site (SuperMap-inspired layout) */
:root {
  --red: #e60012;
  --red-dark: #c40010;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e8e8e8;
  --bg: #f6f7f9;
  --white: #fff;
  --max: 1200px;
  --header-h: 72px;
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header .container {
  width: min(100% - 20px, 1360px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.logo-text span {
  color: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.nav a {
  padding: 8px 6px;
  font-size: 13px;
  color: #333;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

html[lang="vi"] .nav a {
  padding: 8px 5px;
  font-size: 12.5px;
}

.nav a:hover,
.nav a.active {
  color: var(--red);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  margin-right: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  flex-shrink: 0;
}

.lang-switch button {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 2px;
  border-radius: 3px;
}

.lang-switch button.active {
  color: var(--red);
  font-weight: 700;
}

.lang-switch .sep {
  color: #ccc;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f0f2f5;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 0.15) 70%),
    url("../images/hero-bg.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #ccc;
  margin-left: 10px;
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .btn-ghost {
  margin-left: 0;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head .bar {
  width: 36px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 16px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

.section-head p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
}

/* Direction grid */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dir-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 22px 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.dir-card:hover {
  border-color: #f0b0b5;
  box-shadow: 0 10px 28px rgba(230, 0, 18, 0.08);
  transform: translateY(-3px);
}

.dir-num {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.dir-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.dir-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.dir-card .more {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.dir-card .more::after {
  content: " →";
}

/* Feature split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-media {
  order: -1;
}

.split-media {
  overflow: hidden;
  background: #eee;
  min-height: 320px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.split-body .eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.split-body h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}

.split-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #444;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 1px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 18px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 28px;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 4px;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

/* News list */
.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.news-feature {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  color: var(--white);
}

.news-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
}

.news-feature .body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
}

.news-feature h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.news-feature p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.news-item {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item:hover {
  background: #fafafa;
}

.news-item time {
  display: block;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 6px;
  font-weight: 600;
}

.news-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.news-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Contact strip */
.contact-strip {
  background: linear-gradient(120deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--white);
  padding: 56px 0;
}

.contact-strip .inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.contact-strip h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.contact-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.contact-meta {
  display: grid;
  gap: 12px;
}

.contact-meta a,
.contact-meta span {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.contact-meta strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.contact-strip .contact-meta a,
.contact-strip .contact-meta span {
  color: rgba(255, 255, 255, 0.9);
}

.contact-strip .contact-meta strong {
  color: rgba(255, 255, 255, 0.5);
}

/* Page banner */
.page-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #222;
  color: var(--white);
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-banner .container {
  position: relative;
  z-index: 1;
  padding: 48px 0 40px;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.page-banner p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

/* Content page */
.content-block {
  max-width: 800px;
}

.content-block h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p,
.content-block li {
  color: var(--muted);
  font-size: 15px;
}

.content-block ul {
  padding-left: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 24px 20px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--white);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid rgba(230, 0, 18, 0.25);
  border-color: var(--red);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.faq details {
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 10px;
  padding: 14px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 24px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-brand img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 14px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .hero-content {
    animation: rise 0.8s ease both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .logo-text {
    display: none;
  }
}

@media (max-width: 1024px) {
  .dir-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .lang-switch {
    order: 3;
    margin-left: 8px;
    padding-left: 10px;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    margin: 0;
    gap: 0;
    order: 4;
    flex-wrap: wrap;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .split,
  .split.reverse,
  .news-grid,
  .contact-strip .inner {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dir-grid,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo-text {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal a:hover {
  color: #fff;
}
