/* ==========================================================================
   ArchiSpace - Header & Global Minimal System Styles
   Preset: minimal (Tối giản Bắc Âu - Outfit / Inter, radius 8px, btn 6px)
   ========================================================================== */

:root {
  --primary: #18181b;
  --primary-light: #27272a;
  --primary-dark: #09090b;
  --accent: #c28b5e;
  --accent-hover: #a87146;
  --accent-light: #fdf8f4;
  --accent-gradient: linear-gradient(135deg, #c28b5e 0%, #e0a97e 100%);
  --secondary: #52525b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f9fafb;
  --light-alt: #f4f4f5;
  --white: #ffffff;
  --text: #3f3f46;
  --text-dark: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --border-light: #f4f4f5;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-btn: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px -1px rgba(24, 24, 27, 0.06), 0 2px 4px -2px rgba(24, 24, 27, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(24, 24, 27, 0.1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography & Section Headers */
.section-header-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(194, 139, 94, 0.2);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.text-accent {
  color: var(--accent) !important;
}

.text-gradient {
  background: linear-gradient(135deg, #18181b 0%, #c28b5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.15);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 139, 94, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Top Bar */
.top-bar {
  background: #121214;
  color: #a1a1aa;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item i {
  color: var(--accent);
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(194, 139, 94, 0.15);
  color: #e0a97e;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.78rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a1a1aa;
}

.top-bar-link:hover {
  color: var(--white);
}

.top-bar-link i {
  color: var(--accent);
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-socials a {
  color: #71717a;
  font-size: 0.85rem;
}

.top-bar-socials a:hover {
  color: var(--white);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.is-sticky {
  box-shadow: 0 4px 20px rgba(24, 24, 27, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(194, 139, 94, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-slogan {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  position: relative;
}

.nav-link i {
  font-size: 0.85rem;
  opacity: 0.6;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

.mobile-cta-wrap {
  display: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

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

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-list {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .top-bar {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 80px);
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.is-open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--light);
  }

  .nav-link::after {
    display: none;
  }

  .mobile-cta-wrap {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  .header-cta-btn {
    display: none;
  }
}
