/*
Theme Name: hkbuildervietnam.com
Theme URI: 
Author: DevTran
Author URI: 
Description: Premium Construction & Interior Theme based on HK Builder HTML. Liên hệ: 0348.590.300
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hk-builder
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #1A1A1A;
  background: #1A1A1A;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
  background: #B8993E;
  border-radius: 3px;
}

.sans {
  font-family: 'Outfit', sans-serif;
}

.gold {
  color: #B8993E;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 {
  transition-delay: 0.1s;
}

.reveal.d2 {
  transition-delay: 0.2s;
}

.reveal.d3 {
  transition-delay: 0.3s;
}

.reveal.d4 {
  transition-delay: 0.4s;
}

/* ─── COMMON ─── */
.label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #B8993E;
  margin-bottom: 20px;
}

.divider {
  width: 60px;
  height: 1px;
  background: #B8993E;
  margin: 30px 0;
}

.divider-c {
  width: 60px;
  height: 1px;
  background: #B8993E;
  margin: 30px auto;
}

.section-pad {
  padding: 140px 48px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.img-box {
  width: 100%;
  height: 100%;
  background: url('./img/template_image.jpeg');
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: left;
}

.img-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(184, 153, 62, 0.03) 35px, rgba(184, 153, 62, 0.03) 36px);
}

/* ─── BUTTONS ─── */
.btn-gold {
  display: inline-block;
  padding: 16px 40px;
  background: #B8993E;
  color: #1A1A1A;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
}

.btn-gold:hover {
  background: #1A1A1A;
  color: #B8993E;
}

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: #FAF9F6;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(184, 153, 62, 0.5);
  cursor: pointer;
  transition: all 0.4s;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: #B8993E;
  color: #B8993E;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s ease;
}

.nav.scrolled {
  padding: 16px 48px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #FAF9F6;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #FAF9F6;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #B8993E;
  transition: width 0.3s;
}

.nav-link:hover {
  color: #B8993E;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: #B8993E;
  color: #1A1A1A;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
}

.nav-cta:hover {
  background: #FAF9F6;
}

/* ─── HERO ─── */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0a0a 0%, #1a1a1a 40%, #111 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 2px 2px, #B8993E 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #B8993E);
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 300;
  color: #FAF9F6;
  line-height: 1.1;
  letter-spacing: -1px;
  animation: fadeUp 1.2s ease 0.3s both;
}

.hero h1 em {
  font-style: italic;
  color: #B8993E;
}

.hero .sub {
  animation: fadeUp 1.2s ease 0.6s both;
}

.hero .cta {
  animation: fadeUp 1.2s ease 0.9s both;
}

.scroll-ind {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeUp 1s ease 1.5s both;
}

.scroll-ind div {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, #B8993E, transparent);
  margin: 0 auto;
}

/* ─── SOLUTIONS ─── */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 500px;
}

.sol-card {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.5s;
}

.sol-card:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── JOURNEY ─── */
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid #e8e8e3;
  align-items: start;
}

/* ─── PROJECTS GRID ─── */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.proj-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s;
}

.proj-card:hover {
  transform: scale(0.98);
}

.proj-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* ─── MATERIALS ─── */
.mat-row {
  display: grid;
  gap: 60px;
  margin-bottom: 80px;
  align-items: center;
}

.mat-row.left {
  grid-template-columns: 1.2fr 1fr;
}

.mat-row.right {
  grid-template-columns: 1fr 1.2fr;
}

/* ─── CONTACT FORM ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  max-width: 900px;
  margin: 0 auto;
}

input,
textarea,
select {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  color: #FAF9F6;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
  border-bottom-color: #B8993E;
}

input::placeholder,
textarea::placeholder {
  color: #555;
}

select {
  color: #777;
}

select option {
  background: #1A1A1A;
  color: #FAF9F6;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #555;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* ─── FOOTER ─── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-link {
  font-size: 14px;
  color: #777;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.3s;
  display: block;
}

.footer-link:hover {
  color: #FAF9F6;
}

/* ─── WHATSAPP ─── */
.wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #B8993E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, background 0.3s;
  border: none;
}

.wa-btn:hover {
  transform: scale(1.08);
  background: #1A1A1A;
}

/* ─── RESPONSIVE GRIDS ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width:900px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    flex-direction: column;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-link {
    font-size: 16px;
  }

  .section-pad {
    padding: 80px 24px;
  }

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

  .sol-card {
    min-height: 300px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

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

  .mat-row.left,
  .mat-row.right {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

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

  .step {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }

  /* Overrides for our new grids */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .numbers-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width:600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

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

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