:root {
  --bg: #FFFFFF;
  --bg-alt: #F8F6F3;
  --text-dark: #201C2E;
  --text-muted: #5B5568;
  --accent: #B8872F;
  --accent-light: #D9A94A;
  --border-soft: #ECE8E1;
}

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

body {
  background: var(--bg);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

body.gate-active { overflow: hidden; }

.site-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #14120F;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.site-gate.hidden { display: none; }

.site-gate-box {
  background: var(--bg);
  padding: 40px 32px;
  border-radius: 8px;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.site-gate-logo { width: 100px; margin-bottom: 16px; }

.site-gate-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.site-gate-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-gate-box input {
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.site-gate-box button {
  padding: 12px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.site-gate-box button:hover { background: var(--accent-light); }

.gate-error { color: #c0392b !important; margin-top: 12px; margin-bottom: 0 !important; }

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

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

/* Top utility bar (scrolls away with the page) */
.header-top {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 101;
}

.header-top-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 6%;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 68px; display: block; }
.logo .tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  max-width: 160px;
  line-height: 1.3;
}

/* Search */
.header-search {
  flex: 1;
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}
.header-search input {
  flex: 1;
  border: 1px solid var(--border-soft);
  border-right: none;
  background: var(--bg-alt);
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border-radius: 4px 0 0 4px;
  color: var(--text-dark);
}
.header-search input:focus { outline: none; border-color: var(--accent); }
.header-search button {
  background: var(--accent);
  border: none;
  padding: 0 18px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}
.header-search button:hover { background: var(--text-dark); }
.header-search button svg { width: 18px; height: 18px; display: block; }

/* Top bar actions: Zalo / login / cart */
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

.header-zalo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s ease;
}
.header-zalo svg { width: 20px; height: 20px; }
.header-zalo:hover { color: var(--accent); }

.header-login, .header-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}
.header-login svg, .header-cart svg { width: 20px; height: 20px; }
.header-login:hover, .header-cart:hover { color: var(--accent); }
.header-login span, .header-cart span:not(.cart-count) { display: none; }

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sticky nav bar with dropdown */
.header-nav {
  position: sticky;
  top: 0;
  background: #14120F;
  z-index: 100;
}
.header-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 6%;
}

.nav-home { color: #fff; display: flex; }
.nav-home svg { width: 20px; height: 20px; }

.header-nav-inner > a {
  color: #E7E3DA;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.header-nav-inner > a:hover { color: var(--accent-light); }

.nav-dropdown { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-dropdown .nav-link { color: #E7E3DA; font-size: 0.92rem; letter-spacing: 0.5px; transition: color 0.3s ease; }
.nav-dropdown:hover .nav-link { color: var(--accent-light); }

.dropdown-toggle {
  background: none;
  border: none;
  color: #E7E3DA;
  font-size: 0.85rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -12px -12px -12px -4px;
  transition: transform 0.25s ease, color 0.3s ease;
}
.nav-dropdown:hover .dropdown-toggle,
.nav-dropdown.open .dropdown-toggle { color: var(--accent-light); transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.2);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--accent); }

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 6%;
  position: relative;
  scroll-margin-top: 60px;
  background:
    linear-gradient(180deg, rgba(15,13,10,0.55) 0%, rgba(15,13,10,0.35) 40%, rgba(15,13,10,0.75) 100%),
    url('assets/hero-photographer.jpg') center 30%/cover no-repeat;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 24px;
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #FFFFFF;
  font-size: 1rem;
}
.btn-primary:hover {
  background: var(--accent);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.hero .btn-primary:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--text-dark);
}

/* Sections */
section {
  padding: 100px 6%;
  scroll-margin-top: 60px;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 60px;
  position: relative;
}
section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
}

/* Services */
.services { background: var(--bg-alt); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: #FFFFFF;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(32, 28, 46, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(184, 135, 47, 0.15);
}
.service-icon { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 16px; font-size: 1.3rem; color: var(--text-dark); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Bảng giá dịch vụ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.price-card .category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.price-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.price-card .price { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; font-family: 'Poppins', sans-serif; }
.price-card p.desc { color: var(--text-muted); font-size: 0.92rem; }

.pricing-loading, .pricing-empty {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-item {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(32, 28, 46, 0.18);
}
.portfolio-item:hover img {
  transform: scale(1.06);
}

/* Contact */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  color: var(--text-dark);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button { align-self: center; margin-top: 12px; }

.form-success {
  display: none;
  max-width: 640px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--accent);
  font-weight: 500;
}
.form-success.show { display: block; }

/* Footer */
.footer {
  padding: 72px 6% 0;
  background: #14120F;
  color: #B8B4AC;
  font-size: 0.9rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 56px;
  text-align: left;
}

.footer-col h4 {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: #B8B4AC;
  font-size: 0.92rem;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  text-align: center;
  border-top: 1px solid #2A2721;
  padding: 40px 0 32px;
}
.footer-bottom .logo { display: flex; justify-content: center; margin-bottom: 16px; }
.footer-bottom .logo img { height: 56px; }
.footer-bottom .copyright { margin-top: 12px; font-size: 0.8rem; color: #726E66; }

/* Floating action buttons */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 200;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 10px 26px rgba(0,0,0,0.32); }
.fab svg { width: 24px; height: 24px; }

.fab-chat { background: var(--accent); }
.fab-zalo { background: #0068FF; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; }
.fab-phone { background: #E0402E; animation: pulse-phone 2s infinite; }

@keyframes pulse-phone {
  0% { box-shadow: 0 0 0 0 rgba(224, 64, 46, 0.5), 0 6px 20px rgba(0,0,0,0.25); }
  70% { box-shadow: 0 0 0 12px rgba(224, 64, 46, 0), 0 6px 20px rgba(0,0,0,0.25); }
  100% { box-shadow: 0 0 0 0 rgba(224, 64, 46, 0), 0 6px 20px rgba(0,0,0,0.25); }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .logo .tagline { display: none; }
  .header-top-inner { gap: 14px; }
  .header-search { max-width: 220px; }
}

@media (max-width: 768px) {
  .header-nav-inner { gap: 16px; padding: 12px 4%; }
  .header-nav-inner > a, .nav-dropdown .nav-link { font-size: 0.82rem; }
  .form-row { flex-direction: column; }
  section { padding: 70px 6%; }
}

@media (max-width: 640px) {
  .header-search { display: none; }
  .header-top-inner { justify-content: space-between; }
  .logo img { height: 52px; }
}

@media (max-width: 480px) {
  .header-top-inner { padding: 8px 4%; gap: 10px; }
  .header-actions { gap: 12px; }
  .header-zalo span { display: none; }
  .dropdown-menu { left: auto; right: 0; }
}
