:root {
  --navy: #182633;
  --gold: #f5d9b6;
  --sand: #f5f1ea;
  --text: #1c1c1c;
  --muted: #667085;
  --radius: 14px;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", "DM Sans", sans-serif;
  letter-spacing: 0.5px;
}

p {
  margin: 0 0 12px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(24, 38, 51, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 217, 182, 0.18);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo span {
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: #f1f1f1;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  background: rgba(245, 217, 182, 0.1);
  color: var(--gold);
}

.nav a.cta {
  background: var(--gold);
  color: #111;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  transition: transform 0.2s;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: center;
  padding: 140px 28px 80px;
  background: linear-gradient(120deg, rgba(24, 38, 51, 0.93), rgba(24, 38, 51, 0.65)), url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1600&q=80&sat=-25") center/cover no-repeat;
  color: #f7f7f5;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(245, 217, 182, 0.18), transparent 30%),
              radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08), transparent 25%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero .lede {
  max-width: 620px;
  color: #e8e8e2;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin: 26px 0 16px;
  flex-wrap: wrap;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 24px;
  color: #d8d8d2;
}

.hero__meta strong {
  display: block;
  font-size: 24px;
  color: var(--gold);
}

.hero__badge {
  position: absolute;
  right: 32px;
  bottom: 26px;
  padding: 10px 16px;
  border: 1px solid rgba(245, 217, 182, 0.5);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(24, 38, 51, 0.6);
  backdrop-filter: blur(5px);
}

.site-footer {
  margin-top: 60px;
  padding: 36px 24px;
  text-align: center;
  background: #0f1c28;
  border-top: 1px solid rgba(245, 217, 182, 0.18);
  color: #f2f2f2;
}

.site-footer .footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 18px;
  margin-bottom: 12px;
}

.site-footer .footer__logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.site-footer .footer__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #d7d7d7;
}

.site-footer .footer__info a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.site-footer .footer__info a:hover {
  color: #f5d9b6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 12px;
}

.lede {
  color: var(--muted);
}

.section {
  padding: 90px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.section-dark {
  background: linear-gradient(180deg, #192a3b, #0f1c28);
  color: #f4f4f2;
  border-radius: 28px;
  margin-top: 48px;
  box-shadow: var(--shadow);
}

.section-dark .lede {
  color: #d8d8d4;
}

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

.section__footer {
  text-align: center;
  margin-top: 28px;
}

.intro__grid,
.services__grid,
.projects__grid,
.why__grid,
.blog__grid {
  display: grid;
  gap: 18px;
}

.intro__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f4;
  box-shadow: none;
  border: 1px solid rgba(245, 217, 182, 0.15);
}

.services__grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.project-meta {
  list-style: none;
  padding: 0;
  margin: 10px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 14px;
  justify-content: center;
}

.project-meta li {
  padding: 8px 12px;
  border: 1px solid rgba(245, 217, 182, 0.35);
  border-radius: 10px;
  background: rgba(245, 217, 182, 0.08);
}

.btn-tab {
  background: #fff;
  border-color: rgba(245, 217, 182, 0.7);
  color: var(--text);
}

.btn-tab.is-active {
  background: var(--gold);
  color: #0f1c28;
  box-shadow: 0 10px 24px rgba(245, 217, 182, 0.32);
}

.gallery-grid {
  display: grid;
  gap: 14px;
  --thumb-size: 340px;
  grid-template-columns: repeat(auto-fit, minmax(var(--thumb-size), 1fr));
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(245, 217, 182, 0.18);
}

.gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-page {
  background: #0b1622;
  color: #f4f4f4;
  min-height: 100vh;
  position: relative;
}

.gallery-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 34, 0.85), rgba(11, 22, 34, 0.94)),
    var(--gallery-bg, url("Image/thiet_ke_noi_that/THIẾT KẾ BIỆT THỰ/ VILLA HƯNG YÊN - 190 M2/IMG_0356.jpeg")) center/cover no-repeat;
  filter: blur(12px);
  opacity: 0.45;
  z-index: -1;
  transform: scale(1.05);
}

.gallery-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 22px 120px;
}

.gallery-page .section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 217, 182, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.gallery-page .section__header .lede {
  color: #d7d7d7;
}

.gallery-page #projectDesc {
  text-align: center;
  margin-bottom: 10px;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 217, 182, 0.5);
  background: rgba(245, 217, 182, 0.85);
  color: #0f1c28;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  z-index: 30;
}

.to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.service-card,
.project-card,
.blog-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card img,
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card__body,
.project-card__body {
  padding: 18px;
}

.projects__grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.service-card:hover img,
.project-card:hover img {
  transform: scale(1.06);
}

.project-card__body {
  background: #111925;
  color: #f4f4f4;
}

.why__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.why-card {
  background: #f7f7f5;
  border: 1px solid #e9e4db;
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s;
}

.why-card:hover {
  transform: translateY(-4px);
}

.blog__grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-card {
  padding: 20px;
  border: 1px solid #ebe6dd;
}

.blog-card .tag {
  display: inline-block;
  background: var(--sand);
  color: #70543b;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 10px;
}

.blog-card .excerpt {
  color: var(--muted);
}

.text-link {
  color: var(--navy);
  font-weight: 600;
}

.section-cta {
  background: linear-gradient(135deg, #182633, #0e1b28);
  color: #f7f6f3;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d9d9d9;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: #0f1c28;
  box-shadow: 0 10px 30px rgba(245, 217, 182, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.quick-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
  padding: 10px;
  padding-bottom: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(24, 38, 51, 0.95);
  border: 1px solid rgba(245, 217, 182, 0.35);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 15;
  justify-items: center;
}

.quick-contact a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7f7f5;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(245, 217, 182, 0.28);
  background: rgba(245, 217, 182, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: contactPulse 4s ease-in-out infinite;
}

.quick-contact a:hover {
  background: rgba(245, 217, 182, 0.2);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.quick-contact .quick-call {
  background: var(--gold);
  color: #0f1c28;
  border-color: var(--gold);
}

.quick-contact svg {
  width: 22px;
  height: 22px;
}

.quick-contact .quick-top {
  color: var(--gold);
}

.quick-contact a:nth-child(2) { animation-delay: 0.4s; }
.quick-contact a:nth-child(3) { animation-delay: 0.8s; }
.quick-contact a:nth-child(4) { animation-delay: 1.2s; }
.quick-contact a:nth-child(5) { animation-delay: 1.6s; }

@keyframes contactPulse {
  0%, 100% {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(245, 217, 182, 0.4);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), 0 0 0 8px rgba(245, 217, 182, 0.0);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-contact a {
    animation: none;
  }
}

.team {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
}

.team__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 14px;
  overflow: hidden;
}

.team-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 217, 182, 0.2);
  border-radius: var(--radius);
  text-align: center;
  padding: 12px;
}

.team-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.team-card p {
  margin: 6px 0 0;
  color: #d3d3cf;
}

.team__arrow {
  background: rgba(245, 217, 182, 0.2);
  color: #fff;
  border: 1px solid rgba(245, 217, 182, 0.5);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    right: 16px;
    left: 16px;
    top: 72px;
    z-index: 21;
    background: #0f1c28;
    padding: 16px;
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: unset;
    display: none;
    box-shadow: var(--shadow);
    border: 1px solid rgba(245, 217, 182, 0.2);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav a {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
  }

  .nav a.cta {
    text-align: center;
  }

  .nav.show {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
  }

  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 80px 22px;
  }

  .section__header {
    margin-bottom: 32px;
  }

  .section-dark {
    margin-top: 40px;
    border-radius: 24px;
  }

  .gallery-grid {
    --thumb-size: 260px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 120px;
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  .site-header {
    padding: 12px 16px;
  }

  .section {
    padding: 64px 18px;
  }

  .section__header {
    margin-bottom: 26px;
  }

  .section-dark {
    margin-top: 32px;
    border-radius: 20px;
  }

  .card {
    padding: 16px;
  }

  .service-card__body,
  .project-card__body {
    padding: 16px;
  }

  .hero {
    padding: 120px 18px 72px;
    min-height: 86vh;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

  .quick-contact {
    left: 12px;
    right: 12px;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    padding: 12px 10px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 6px;
  }

  .quick-contact a {
    width: 100%;
    height: 52px;
  }

  .gallery-grid {
    --thumb-size: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-shell {
    padding: 32px 10px 96px;
  }

  .gallery-page .section {
    padding: 20px 10px;
  }

  .gallery-card img {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 78vh;
    padding: 110px 16px 64px;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero__badge {
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero__meta {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .team__track {
    grid-auto-columns: minmax(160px, 1fr);
  }

  input,
  textarea {
    font-size: 15px;
  }
}
