/**
 * TOP HOMES LUXURY — MASTER DESIGN SYSTEM
 * Architecture: Quiet Luxury & Exaggerated Minimalism
 * Standards: ui-ux-pro-max guidelines
 */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  /* Brand Palette (Quiet Luxury) */
  --teal: #0a3837;
  --teal-dark: #062c2b;
  --teal-light: #104c4b;
  --sand: #e8ddcc;
  --sand-light: #f2ebe0;
  --ivory: #f8f5ee;
  --ivory-surface: #ffffff;
  --gold: #b08d57;
  --gold-hover: #c89b53;
  --gold-light: #e0c89e;
  --gold-glow: rgba(176, 141, 87, 0.28);
  --ink: #1b2625;
  --ink-soft: #324240;
  --muted: #647371;
  --border-subtle: rgba(255, 255, 255, 0.15);
  --border-light: rgba(10, 56, 55, 0.12);
  --border-card: #e4dad0;

  /* Typography Tokens */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing Scale (8pt grid) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Layout Rhythm */
  --container-max: 1440px;
  --gutter: clamp(20px, 6vw, 96px);
  --section-pad: clamp(80px, 10vw, 130px);

  /* Animation & Motion */
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --duration-cinematic: 1.2s;
}

/* Reset & Global Safeguards */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

img, video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Accessible Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Typography Utility — Vietnamese Diacritics & Rhythm Optimization */
h1, h2, h3, h4 {
  text-wrap: balance;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.015em;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

p, blockquote {
  text-wrap: pretty;
  line-height: 1.75;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header & Navigation — Solid Black Block with Crisp White Typography (User Design Match) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 74px;
  padding: 0 clamp(24px, 4.5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  transition: all 0.35s var(--ease-lux);
}

.header.scrolled {
  height: 66px;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.official-logo {
  display: block;
  width: clamp(156px, 13vw, 190px);
  height: clamp(20px, 1.6vw, 24px);
  background: url("top-homes-logo-crop.png") left center / contain no-repeat;
  transition: transform 0.3s var(--ease-lux);
}

.header.scrolled .official-logo {
  transform: scale(0.94);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 42px);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff !important;
  padding: 10px 0;
  position: relative;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0px;
  height: 1.5px;
  background: #ffffff;
  transition: right 0.3s var(--ease-lux);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff !important;
  opacity: 1;
}

.nav-link:hover::after, .nav-link.active::after {
  right: 0;
}

.nav-link .dropdown-icon {
  width: 9px;
  height: 9px;
  stroke: #ffffff;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Submenu Flyout */
.submenu {
  position: absolute;
  top: 100%;
  left: -15px;
  min-width: 250px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s var(--ease-lux);
  border-radius: 2px;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 11px 24px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.submenu a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #dfc59b !important;
  padding-left: 28px;
}

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

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff !important;
  border-radius: 2px;
  transition: all 0.25s var(--ease-lux);
  cursor: pointer;
}

.btn-header-cta:hover {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.btn-header-cta svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.btn-header-cta:hover svg {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  padding: 8px;
  color: #ffffff;
  cursor: pointer;
}

/* Cinematic Hero Section — Pure Video Background Without Green/Text Overlay */
.hero-showreel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background-color: #000000;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none !important;
}

.hero-overlay {
  display: none !important;
}

.hero-content {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease-lux);
  box-shadow: 0 8px 24px rgba(176, 141, 87, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(176, 141, 87, 0.45);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease-lux);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
  transform: translateY(-3px);
}

/* Video Controls & Sound Toggle */
.hero-controls {
  position: absolute;
  right: var(--gutter);
  bottom: 44px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(6, 44, 43, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.video-ctrl-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.08);
}

/* Trustbar & Credibility Section */
.trustbar {
  background-color: var(--sand);
  border-bottom: 1px solid #dcd1c0;
  padding: 36px 0;
}

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

.trust-item {
  padding: 8px 24px;
  border-right: 1px solid #d0c3b0;
}

.trust-item:last-child {
  border-right: none;
}

.trust-item b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--teal);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.trust-item span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--muted);
}

/* Section Common Structure */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-dark {
  background-color: var(--teal);
  color: #fff;
}

.section-deep {
  background-color: var(--teal-dark);
  color: #fff;
}

.section-sand {
  background-color: var(--sand);
}

.section-header {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  padding-top: 8px;
}

.section-title-wrap h2 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.24;
  color: var(--teal);
}

.section-dark .section-title-wrap h2,
.section-deep .section-title-wrap h2 {
  color: #fff;
}

.section-title-wrap h2 em {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
}

.section-desc {
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
  text-wrap: pretty;
}

.section-dark .section-desc,
.section-deep .section-desc {
  color: #c0d1cf;
}

/* Portfolio Grid & Real-time Filter Tabs */
.portfolio-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border: 1px solid #d4c8b6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 2px;
  transition: all 0.3s ease;
  background: transparent;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 56, 55, 0.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}

.portfolio-card {
  position: relative;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(6, 44, 43, 0.14);
}

.portfolio-card-media {
  position: relative;
  height: clamp(340px, 32vw, 480px);
  overflow: hidden;
  background-color: #e5ded4;
}

.portfolio-card-media img {
  transition: transform 1.2s var(--ease-lux), filter 0.8s ease;
}

.portfolio-card:hover .portfolio-card-media img {
  transform: scale(1.045);
}

.portfolio-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 6px 14px;
  background: rgba(6, 44, 43, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-card-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
}

.portfolio-card-meta {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--teal);
  margin-bottom: 12px;
}

.portfolio-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.portfolio-facts {
  display: flex;
  gap: 28px;
  padding-top: 18px;
  border-top: 1px solid #ede5d8;
  margin-bottom: 24px;
}

.portfolio-fact dt {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.portfolio-fact dd {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--teal);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  transition: gap 0.3s ease, color 0.3s ease;
}

.portfolio-link:hover {
  color: var(--gold);
  gap: 16px;
}

/* Services / Comprehensive Solutions */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.service-item {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 24px;
  padding: 48px 36px 48px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.4s ease, padding 0.4s var(--ease-lux);
}

.service-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.service-item:nth-child(even) {
  padding-left: 36px;
  padding-right: 0;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
}

.service-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: #fff;
}

.service-content p {
  font-size: 13.5px;
  line-height: 1.8;
  color: #c2d4d1;
  margin-bottom: 18px;
  text-wrap: pretty;
}

.service-link {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-arrow {
  color: var(--gold);
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
  transition: transform 0.3s ease;
}

.service-item:hover .service-arrow {
  transform: translate(4px, -4px);
}

/* Creation Journey (Interactive 6-Step Stepper) */
.journey-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-top: 48px;
}

.journey-visual-wrap {
  position: relative;
  height: clamp(440px, 48vw, 640px);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(6, 44, 43, 0.2);
}

.journey-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease-lux), transform 1.2s var(--ease-lux), visibility 0s 0.8s;
}

.journey-img.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.journey-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  padding: 12px 20px;
  background: rgba(6, 44, 43, 0.9);
  backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}

.journey-badge b {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
}

.journey-badge span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.journey-step-item {
  padding: 22px 28px;
  border-left: 2px solid #d4c8b6;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.35s var(--ease-lux);
  border-radius: 0 2px 2px 0;
}

.journey-step-item:hover {
  background: rgba(232, 221, 204, 0.4);
  border-left-color: var(--gold);
}

.journey-step-item.active {
  background: #fff;
  border-left-color: var(--teal);
  box-shadow: 0 10px 30px rgba(10, 56, 55, 0.08);
}

.journey-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.journey-step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  font-weight: 600;
}

.journey-step-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--teal);
}

.journey-step-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  display: none;
  text-wrap: pretty;
}

.journey-step-item.active .journey-step-desc {
  display: block;
  margin-top: 10px;
}

/* Before - After Interactive Transformation */
.transformation-wrap {
  position: relative;
  width: 100%;
  height: clamp(420px, 50vw, 680px);
  overflow: hidden;
  border-radius: 2px;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  box-shadow: 0 24px 70px rgba(6, 44, 43, 0.25);
  margin-top: 40px;
}

.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ba-before {
  filter: saturate(0.65) contrast(0.95);
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 0 var(--split, 50%));
}

.ba-tag {
  position: absolute;
  top: 24px;
  z-index: 5;
  padding: 8px 16px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 2px;
  pointer-events: none;
}

.ba-tag-before {
  left: 24px;
  background: rgba(6, 44, 43, 0.88);
}

.ba-tag-after {
  right: 24px;
  background: var(--gold);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--split, 50%);
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 7;
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transformation-wrap:hover .ba-handle {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

/* Journal & Magazine Insights */
.journal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
}

.journal-card {
  position: relative;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.45s var(--ease-lux), box-shadow 0.45s var(--ease-lux);
}

.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10, 56, 55, 0.12);
}

.journal-media {
  height: 280px;
  overflow: hidden;
}

.journal-card:first-child .journal-media {
  height: 380px;
}

.journal-media img {
  transition: transform 1s var(--ease-lux);
}

.journal-card:hover .journal-media img {
  transform: scale(1.04);
}

.journal-body {
  padding: 28px;
}

.journal-meta {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.journal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--teal);
  margin-bottom: 12px;
}

.journal-card:first-child .journal-title {
  font-size: 23px;
  line-height: 1.36;
}

.journal-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
  margin: 0;
}

/* Proof & Testimonial Section */
.proof-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background-color: var(--teal);
  color: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 44, 43, 0.3);
}

.proof-media {
  min-height: 460px;
}

.proof-content {
  padding: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.55;
  margin: 20px 0 28px;
  color: #f7f1e6;
  font-style: italic;
  text-wrap: pretty;
}

.quote-author {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.quote-sub {
  font-size: 12.5px;
  line-height: 1.55;
  color: #b9ccc8;
  margin-top: 6px;
}

/* Contact CTA Band */
.cta-band {
  position: relative;
  background: url("assets/images/dream-villa.jpg") center / cover no-repeat;
  padding: clamp(90px, 12vw, 150px) 0;
  color: #fff;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 44, 43, 0.88);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.32;
  margin: 20px auto 24px;
  color: #fff;
  text-wrap: balance;
  max-width: 900px;
}

.cta-title em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-light);
  display: inline-block;
}

.cta-text {
  font-size: 15px;
  line-height: 1.85;
  color: #d1dfdd;
  max-width: 660px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

/* Footer */
.footer {
  background-color: var(--teal-dark);
  color: #b0bfbd;
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  display: block;
  width: clamp(156px, 13vw, 190px);
  height: clamp(20px, 1.6vw, 24px);
  background: url("top-homes-logo-crop.png") left center / contain no-repeat;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 13px;
  color: #b0bfbd;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-contact-item {
  margin-bottom: 12px;
  font-size: 13px;
}

.footer-contact-item b {
  color: #fff;
}

.copyright-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7b8f8c;
}

/* Floating Contact Dock */
.floating-dock {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px rgba(6, 44, 43, 0.4);
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.35s var(--ease-lux);
}

.float-action-btn:hover {
  transform: scale(1.1);
  background: var(--gold);
  border-color: var(--gold);
}

.float-action-btn.btn-call {
  background: var(--gold);
}

.float-action-btn.btn-zalo {
  background: #0088cc;
}

.float-action-btn.btn-messenger {
  background: #0084ff;
}

.float-tooltip {
  position: absolute;
  right: 62px;
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(6, 44, 43, 0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all 0.25s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.float-action-btn:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Consultation Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 44, 43, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-lux);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  position: relative;
  width: min(940px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ivory);
  border-radius: 3px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  transform: scale(0.94);
  transition: transform 0.4s var(--ease-lux);
}

.modal-backdrop.open .modal-window {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 56, 55, 0.08);
  color: var(--teal);
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--teal);
  color: #fff;
}

.modal-sidebar {
  background: var(--teal);
  color: #fff;
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-sidebar-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-sidebar-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin: 16px 0;
  color: #fff;
}

.modal-sidebar-text {
  font-size: 13px;
  line-height: 1.8;
  color: #bed0cd;
  margin-bottom: 32px;
}

.modal-sidebar-info {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.modal-sidebar-info b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.modal-sidebar-info a, .modal-sidebar-info p {
  font-size: 14px;
  color: #fff;
}

.modal-form-wrap {
  padding: 56px 44px;
  background: #fff;
}

.modal-form-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 28px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid #d4c8b6;
  border-radius: 2px;
  background: var(--ivory);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold);
  background: #fff;
}

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

.form-submit-btn {
  margin-top: 24px;
  width: 100%;
  padding: 16px;
  background: var(--teal);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.form-submit-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.form-success-msg {
  display: none;
  padding: 18px;
  background: #e7f3ef;
  border-left: 3px solid var(--teal);
  color: var(--teal);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 20px;
}

.form-success-msg.show {
  display: block;
}

/* Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux), filter 0.9s var(--ease-lux);
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .section-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-item:nth-child(odd) {
    border-right: none;
  }
  .service-item:nth-child(even) {
    padding-left: 0;
  }
  .journey-layout {
    grid-template-columns: 1fr;
  }
  .proof-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .header {
    height: 68px;
    padding: 0 20px;
  }
  .nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    overflow-y: auto;
  }
  .nav.open {
    display: flex;
  }
  .nav-link {
    font-size: 16px;
    width: 100%;
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    box-shadow: none;
    margin-top: 8px;
    padding: 8px 0;
  }
  .btn-header-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .trustbar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item:nth-child(2) {
    border-right: none;
  }
  .trust-item:nth-child(-n+2) {
    border-bottom: 1px solid #d0c3b0;
    padding-bottom: 16px;
  }
  .journal-grid {
    grid-template-columns: 1fr;
  }
  .modal-window {
    grid-template-columns: 1fr;
  }
  .modal-sidebar {
    padding: 36px 28px;
  }
  .modal-form-wrap {
    padding: 36px 28px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --section-pad: 70px;
  }
  .hero-title {
    font-size: 46px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }
  .btn-primary, .btn-outline-white {
    width: 100%;
    justify-content: center;
  }
  .trustbar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid #d0c3b0;
    padding: 12px 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .copyright-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .floating-dock {
    right: 16px;
    bottom: 16px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
