/* ==========================================================================
   LEGALMETR - Architectural Geometry & Quiet Luxury Design System
   High-End Legal-Consulting Boutique for De-Luxe Real Estate
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #795D44;
  --bg-primary-deep: #664d36;
  --surface-dark: #5C4430;
  --surface-card: rgba(78, 56, 39, 0.72);
  --surface-card-hover: rgba(92, 67, 47, 0.92);
  --surface-glass: rgba(56, 39, 26, 0.65);

  /* Accents & Borders */
  --accent-terracotta: #9E5A38;
  --accent-terracotta-hover: #b46740;
  --accent-bronze: #4A3525;
  --accent-gold: #9E7B5C;
  --accent-gold-bright: #C49D79;
  --accent-gold-light: #E2C7AA;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(196, 157, 121, 0.35);
  --border-gold-bright: rgba(196, 157, 121, 0.75);

  /* Typography */
  --text-primary: #FAF8F5;
  --text-primary-soft: #EDE6DE;
  --text-secondary: #D0C6BB;
  --text-muted: rgba(208, 198, 187, 0.65);

  /* Fonts */
  --font-serif: 'Cinzel', 'Tenor Sans', serif;
  --font-display: 'Tenor Sans', 'Cinzel', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1320px;
  --header-height: 84px;
  --radius-sm: 3px;

  /* Shadows */
  --shadow-card: 0 16px 36px -10px rgba(18, 12, 7, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-card-hover: 0 24px 50px -10px rgba(18, 12, 7, 0.7), 0 0 30px rgba(196, 157, 121, 0.16);
  --shadow-modal: 0 24px 70px rgba(12, 8, 4, 0.85);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

/* Headings */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  font-weight: 300;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 3rem);
  padding-right: clamp(1.25rem, 3.5vw, 3rem);
}

.section {
  padding: clamp(5rem, 8vw, 9rem) 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-gold-bright);
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-gold);
}

.section-header {
  max-width: 780px;
  margin-bottom: clamp(3rem, 5vw, 4.8rem);
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.7;
}

/* ==========================================================================
   Buttons (Crisp Borders & Inversion on Hover)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-terracotta);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(158, 90, 56, 0.35);
}

.btn-primary:hover {
  background: #FAF8F5;
  color: #382518;
  border-color: #FAF8F5;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(18, 12, 7, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-header {
  padding: 0.7rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.btn-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Header (Fixed, Sticky with Blur, Clean Breathing Room)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: all 0.35s ease;
  background: rgba(121, 93, 68, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.scrolled {
  background: rgba(85, 63, 44, 0.95);
  border-bottom-color: rgba(196, 157, 121, 0.35);
  box-shadow: 0 10px 30px rgba(18, 12, 7, 0.4);
  height: 74px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-shield-wrapper {
  background: #FAF9F6;
  border-radius: 4px;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(196, 157, 121, 0.45);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo:hover .brand-shield-wrapper {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent-gold-bright);
}

.brand-shield {
  width: 44px;
  height: 48px;
  object-fit: contain;
  display: block;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-name-accent {
  color: #5C9CD4;
}

.brand-desc {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold-bright);
  margin-top: 3px;
  max-width: 250px;
  line-height: 1.25;
  font-weight: 500;
}

/* Main Nav - Centered with flexible gaps */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-primary-soft);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-gold-bright);
  transition: width 0.3s ease;
}

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

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

/* Header Actions & Contact Widget */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-phone-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 1.25rem;
  border-right: 1px solid var(--border-subtle);
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.phone-icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4cd964;
  box-shadow: 0 0 8px #4cd964;
}

.header-phone-number {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  white-space: nowrap;
}

.header-phone-badge {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger-line {
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.burger-btn.active .burger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #443122;
  z-index: 99;
  padding: 6rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  transition: right 0.35s ease;
  border-left: 1px solid var(--border-gold);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
}

.hero-main-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  z-index: 2;
}

.hero-text-col {
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(158, 123, 92, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold-bright);
  box-shadow: 0 0 8px var(--accent-gold-bright);
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.18;
  color: #FFFFFF;
}

.hero-title span {
  display: block;
  color: var(--text-primary-soft);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-primary-soft);
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--accent-gold);
  padding-left: 1.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Hero Centered Header & 5-Cell Architectural Honeycombs Cluster
   ========================================================================== */

.hero-main-centered {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 2;
}

.hero-main-centered .hero-title {
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  line-height: 1.22;
}

.hero-main-centered .hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary-soft);
  margin: 0 auto 2.25rem;
  max-width: 820px;
  border-left: none;
  padding-left: 0;
  line-height: 1.35;
}

.hero-main-centered .hero-actions {
  justify-content: center;
  gap: 1.25rem;
}

.hero-honeycombs-wrapper {
  margin: 1.5rem auto 3.5rem;
  position: relative;
  max-width: 1160px;
  z-index: 2;
}

.honeycomb-hero-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.hero-label-line {
  height: 1px;
  width: 90px;
  background: linear-gradient(90deg, transparent, rgba(196, 157, 121, 0.6), transparent);
}

.hero-label-text {
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold-bright);
  text-transform: uppercase;
}

.hero-hex-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-hex-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-hex-row-2 {
  margin-top: -46px;
}

.hero-hex-cell {
  width: 330px;
  height: 250px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, rgba(226, 199, 170, 0.95) 0%, rgba(196, 157, 121, 0.4) 50%, rgba(196, 157, 121, 0.9) 100%);
  padding: 2px;
  filter: drop-shadow(0 14px 28px rgba(20, 13, 8, 0.6));
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.hero-hex-cell:hover {
  transform: translateY(-8px) scale(1.04);
  filter: drop-shadow(0 22px 45px rgba(20, 13, 8, 0.8)) drop-shadow(0 0 20px rgba(196, 157, 121, 0.45));
  z-index: 10;
}

.hero-hex-inner {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: relative;
  overflow: hidden;
  background: #3A2A1E;
}

.hero-hex-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-hex-cell:hover .hero-hex-inner img {
  transform: scale(1.08);
}

.hero-hex-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 17, 10, 0.35) 0%, transparent 40%, rgba(18, 12, 7, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px 22px;
  text-align: center;
  pointer-events: none;
}

.hero-hex-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #FAF8F5;
  background: rgba(30, 20, 13, 0.8);
  border: 1px solid rgba(196, 157, 121, 0.45);
  padding: 3px 8px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-hex-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.hero-hex-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero-hex-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: #FAF8F5;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.04em;
}

.hero-hex-spec {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--accent-gold-bright);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Blueprint Visual Frame */
.hero-visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  position: relative;
  border: 1px solid rgba(196, 157, 121, 0.35);
  background: linear-gradient(160deg, rgba(68, 50, 35, 0.6) 0%, rgba(45, 32, 22, 0.75) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  box-shadow: var(--shadow-card), inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.blueprint-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-gold-bright);
  pointer-events: none;
}

.corner-tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.blueprint-meta {
  position: absolute;
  bottom: 0.75rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold-bright);
  text-transform: uppercase;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.5rem;
}

.blueprint-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Horizontal Key Metrics Strip */
.hero-metrics-bar {
  position: relative;
  z-index: 2;
  margin-top: 3.5rem;
  background: linear-gradient(135deg, rgba(78, 56, 39, 0.8) 0%, rgba(52, 37, 25, 0.9) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 1.75rem 2.5rem;
  box-shadow: var(--shadow-card);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.metric-item {
  position: relative;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 5%;
  height: 90%;
  width: 1px;
  background: var(--border-subtle);
}

.metric-accent,
.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.7vw, 2.75rem);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.15;
  margin: 0 0 0.65rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.metric-suffix {
  color: var(--accent-gold-bright);
  font-size: 0.8em;
  font-weight: 400;
  line-height: 1;
}

.metric-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.metric-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.metric-text,
.metric-label {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Expertise / Philosophy Section
   ========================================================================== */

.expertise-section {
  background: #684f39;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.expertise-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.expertise-statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.expertise-statement strong {
  color: #FFFFFF;
  font-weight: 500;
}

.expertise-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.expertise-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.expertise-feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem;
  background: rgba(48, 35, 23, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.expertise-feature-item:hover {
  background: rgba(48, 35, 23, 0.75);
  border-color: var(--accent-gold);
}

.expertise-icon-box {
  width: 44px;
  height: 44px;
  background: var(--surface-dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-gold-bright);
}

.expertise-feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.expertise-feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Services Section (Elevated Quiet Luxury Cards)
   ========================================================================== */

.services-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0;
}

/* Reference 1: Pill Badge with Golden Perimeter */
.services-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.4rem;
  border: 1px solid rgba(196, 157, 121, 0.5);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
  background: rgba(45, 32, 22, 0.45);
  box-shadow: 0 4px 14px rgba(25, 17, 10, 0.25);
  margin-bottom: 1.25rem;
}

/* Category / Scene Switcher Navigation */
.honeycomb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.honeycomb-nav-btn {
  background: rgba(56, 39, 26, 0.55);
  border: 1px solid rgba(196, 157, 121, 0.28);
  color: var(--text-secondary);
  padding: 0.45rem 1.15rem;
  font-size: 0.72rem;
  font-family: monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.honeycomb-nav-btn:hover {
  background: rgba(82, 60, 42, 0.8);
  border-color: var(--accent-gold-bright);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.honeycomb-nav-btn.active {
  background: linear-gradient(135deg, rgba(158, 90, 56, 0.45) 0%, rgba(74, 53, 37, 0.6) 100%);
  border-color: var(--accent-gold-bright);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(18, 12, 7, 0.4), 0 0 10px rgba(196, 157, 121, 0.2);
}

.honeycomb-nav-btn .scene-num {
  color: var(--accent-gold-bright);
  font-weight: 700;
}

/* Honeycomb Stage Showcase (Reference 2: Twin Polygonal Honeycombs) */
.honeycomb-stage {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 3.5rem;
}

/* Outer Blueprint Bracket Frame Decoration */
.honeycomb-stage::before {
  content: 'OBJ // 01-A';
  position: absolute;
  top: -18px;
  left: 12px;
  font-family: monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  opacity: 0.6;
}

.honeycomb-stage::after {
  content: 'LEGALMETR DUE DILIGENCE // SCALE 1:100';
  position: absolute;
  top: -18px;
  right: 12px;
  font-family: monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  opacity: 0.6;
}

.honeycomb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

/* Center Seam Hairline & Crosshair Marks */
.honeycomb-center-seam {
  position: absolute;
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(196, 157, 121, 0.5) 0%, rgba(196, 157, 121, 0.15) 50%, rgba(196, 157, 121, 0.5) 100%);
  pointer-events: none;
  z-index: 10;
}

.honeycomb-center-crosshair-top {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold-bright);
  background: var(--bg-primary);
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
  z-index: 11;
  text-shadow: 0 0 8px rgba(196, 157, 121, 0.6);
}

.honeycomb-center-badge-bottom {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  z-index: 11;
}

.honeycomb-coordinate-tag {
  font-family: monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--accent-gold-bright);
  background: rgba(38, 26, 17, 0.85);
  border: 1px solid rgba(196, 157, 121, 0.4);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Left Polygonal Honeycomb Frame */
.honeycomb-cell-left {
  position: relative;
  height: 440px;
  clip-path: polygon(14% 0%, 100% 0%, 100% 84%, 86% 100%, 0% 100%, 0% 16%);
  background: linear-gradient(135deg, rgba(226, 199, 170, 0.9) 0%, rgba(196, 157, 121, 0.35) 45%, rgba(196, 157, 121, 0.85) 100%);
  padding: 2px;
  filter: drop-shadow(0 16px 36px rgba(22, 14, 8, 0.55));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.honeycomb-cell-left:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 24px 48px rgba(22, 14, 8, 0.7)) drop-shadow(0 0 16px rgba(196, 157, 121, 0.25));
}

.honeycomb-inner-left {
  width: 100%;
  height: 100%;
  clip-path: polygon(14% 0%, 100% 0%, 100% 84%, 86% 100%, 0% 100%, 0% 16%);
  position: relative;
  overflow: hidden;
  background: #362518;
}

/* Right Polygonal Honeycomb Frame */
.honeycomb-cell-right {
  position: relative;
  height: 440px;
  clip-path: polygon(0% 0%, 86% 0%, 100% 16%, 100% 100%, 14% 100%, 0% 84%);
  background: linear-gradient(135deg, rgba(196, 157, 121, 0.85) 0%, rgba(196, 157, 121, 0.35) 55%, rgba(226, 199, 170, 0.9) 100%);
  padding: 2px;
  filter: drop-shadow(0 16px 36px rgba(22, 14, 8, 0.55));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.honeycomb-cell-right:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 24px 48px rgba(22, 14, 8, 0.7)) drop-shadow(0 0 16px rgba(196, 157, 121, 0.25));
}

.honeycomb-inner-right {
  width: 100%;
  height: 100%;
  clip-path: polygon(0% 0%, 86% 0%, 100% 16%, 100% 100%, 14% 100%, 0% 84%);
  position: relative;
  overflow: hidden;
  background: #362518;
}

/* Image with Cinematic Atmosphere */
.honeycomb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease, opacity 0.35s ease;
}

.honeycomb-cell-left:hover .honeycomb-media,
.honeycomb-cell-right:hover .honeycomb-media {
  transform: scale(1.05);
}

/* Soft Warm Architectural Vignette Overlay */
.honeycomb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 22, 14, 0.28) 0%, transparent 40%, rgba(24, 15, 9, 0.88) 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 2rem;
  z-index: 2;
  transition: opacity 0.35s ease;
}

/* Top Meta Row in Honeycomb */
.honeycomb-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.honeycomb-object-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(30, 20, 13, 0.75);
  border: 1px solid rgba(196, 157, 121, 0.4);
  border-radius: 2px;
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.honeycomb-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.honeycomb-audit-tag {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--accent-gold-bright);
  letter-spacing: 0.14em;
  background: rgba(30, 20, 13, 0.6);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* Bottom Meta Row in Honeycomb */
.honeycomb-meta-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Chamfer clearances so text is never clipped by polygonal cuts */
.honeycomb-cell-left .honeycomb-meta-top {
  padding-left: 1.5rem;
}

.honeycomb-cell-right .honeycomb-meta-top {
  padding-right: 1.5rem;
}

.honeycomb-cell-right .honeycomb-meta-bottom {
  padding-left: 3rem;
  padding-bottom: 0.4rem;
}

.honeycomb-cell-left .honeycomb-meta-bottom {
  padding-right: 2.5rem;
  padding-bottom: 0.4rem;
}

.honeycomb-caption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: #FAF8F5;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.honeycomb-legal-spec {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--accent-gold-light);
  letter-spacing: 0.08em;
  line-height: 1.5;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Reference 1: Minimalist Pillar Columns (Vertical Hairline Dividers)
   ========================================================================== */

.service-pillars-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1rem;
  margin-bottom: 2.75rem;
  background: linear-gradient(180deg, rgba(74, 53, 37, 0.25) 0%, rgba(56, 39, 26, 0.45) 100%);
  border: 1px solid rgba(196, 157, 121, 0.2);
  border-radius: 4px;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(22, 14, 8, 0.4);
}

.service-pillar-col {
  padding: 2.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.service-pillar-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(196, 157, 121, 0.35) 20%, rgba(196, 157, 121, 0.35) 80%, transparent 100%);
}

.service-pillar-col:hover {
  background: rgba(94, 69, 49, 0.4);
  transform: translateY(-4px);
}

.pillar-icon-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--accent-gold-bright);
  transition: all 0.35s ease;
}

.service-pillar-col:hover .pillar-icon-box {
  transform: scale(1.1);
  color: #FFFFFF;
  filter: drop-shadow(0 0 12px rgba(196, 157, 121, 0.6));
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FAF8F5;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.service-pillar-col:hover .pillar-title {
  color: var(--accent-gold-bright);
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.25rem;
  max-width: 260px;
}

.pillar-action-link {
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

.pillar-action-link svg {
  transition: transform 0.25s ease;
}

.service-pillar-col:hover .pillar-action-link {
  color: #FFFFFF;
}

.service-pillar-col:hover .pillar-action-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Reference 1: Architectural Line with Centered Downward Chevron
   ========================================================================== */

.architectural-chevron-divider {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 2.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.architectural-chevron-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.services-action-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Methodology Section (Due Diligence Standard)
   ========================================================================== */

.methodology-section {
  background: #58412e;
  position: relative;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.methodology-tabs-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.methodology-tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 1.1rem 1.8rem;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold-bright);
  transition: width 0.3s ease;
}

.tab-btn.active {
  color: #FFFFFF;
}

.tab-btn.active::after {
  width: 100%;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.methodology-card {
  background: linear-gradient(160deg, rgba(62, 45, 31, 0.8) 0%, rgba(38, 27, 18, 0.9) 100%);
  border: 1px solid rgba(196, 157, 121, 0.3);
  border-radius: var(--radius-sm);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.methodology-content h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.methodology-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.due-diligence-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.due-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-primary-soft);
}

.due-item-check {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: rgba(196, 157, 121, 0.2);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-gold-bright);
  font-size: 0.75rem;
}

.methodology-visual {
  background: rgba(26, 18, 12, 0.85);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 2.2rem;
}

.blueprint-header-tag {
  font-family: monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold-bright);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
}

.methodology-stats-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.methodology-stat-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.stat-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-gold-bright));
  border-radius: 2px;
}

/* ==========================================================================
   Contact Form Block (Concierge Confidential Desk)
   ========================================================================== */

.contact-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-info-col {
  padding-right: 1.5rem;
}

.contact-title {
  margin-bottom: 1.5rem;
}

.contact-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.security-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.security-point {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-primary-soft);
}

.security-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(158, 90, 56, 0.2);
  border: 1px solid var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-bright);
  flex-shrink: 0;
}

.contact-form-card {
  background: linear-gradient(160deg, rgba(78, 56, 39, 0.85) 0%, rgba(48, 34, 23, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: clamp(2rem, 3.5vw, 3.5rem);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-primary-soft);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(36, 25, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-control::placeholder {
  color: rgba(208, 198, 187, 0.45);
}

.form-control:focus {
  border-color: var(--accent-gold-bright);
  background: rgba(36, 25, 17, 0.98);
  box-shadow: 0 0 0 3px rgba(196, 157, 121, 0.25);
}

.form-group.has-error .form-control {
  border-color: #d9534f;
  background: rgba(217, 83, 79, 0.08);
}

.form-error-msg {
  display: none;
  font-size: 0.72rem;
  color: #ff9494;
  margin-top: 0.4rem;
}

.form-group.has-error .form-error-msg {
  display: block;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C49D79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
  cursor: pointer;
}

select.form-control option {
  background: #3B2A1C;
  color: var(--text-primary);
  padding: 10px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
  cursor: pointer;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(36, 25, 17, 0.85);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.form-checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.form-checkbox-input:checked + .checkbox-custom {
  background: var(--accent-terracotta);
  border-color: var(--accent-gold-bright);
}

.form-checkbox-input:checked + .checkbox-custom::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 11px;
  font-weight: bold;
}

.checkbox-label-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.checkbox-label-text a {
  color: var(--accent-gold-bright);
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #402e20;
  border-top: 1px solid var(--border-gold);
  padding: 5rem 0 2.5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-gold-bright);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(60, 44, 30, 0.7);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary-soft);
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--accent-terracotta);
  border-color: var(--accent-gold-bright);
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.footer-bottom-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 9, 5, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-dialog {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(160deg, #4d3625 0%, #362417 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-modal);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0);
}

.modal-dialog-large {
  max-width: 800px;
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(28, 19, 12, 0.5);
}

.modal-title {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #FFFFFF;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary-soft);
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1200px) {
  .hero-hex-cell {
    width: 280px;
    height: 215px;
  }

  .hero-hex-row-2 {
    margin-top: -38px;
  }

  .hero-hex-title {
    font-size: 0.92rem;
  }

  .service-pillars-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-pillar-col:nth-child(1),
  .service-pillar-col:nth-child(2) {
    border-bottom: 1px solid rgba(196, 157, 121, 0.25);
  }

  .service-pillar-col:nth-child(2)::after {
    display: none;
  }

  .honeycomb-cell-left,
  .honeycomb-cell-right {
    height: 380px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Tablet adaptation for hero honeycombs */
@media (max-width: 992px) {
  .hero-hex-cell {
    width: 235px;
    height: 180px;
  }

  .hero-hex-row-2 {
    margin-top: -32px;
  }

  .hero-hex-title {
    font-size: 0.85rem;
  }

  .hero-hex-overlay {
    padding: 16px 12px 14px;
  }
}

/* Collapse navigation at 1120px to protect header breathing room */
@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .burger-btn {
    display: flex;
  }

  .hero-main-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text-col {
    margin: 0 auto;
  }

  .hero-subtitle {
    border-left: none;
    padding-left: 0;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual-col {
    order: -1;
  }

  .blueprint-frame {
    max-width: 380px;
    margin: 0 auto;
  }

  .expertise-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .methodology-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info-col {
    padding-right: 0;
    text-align: center;
  }

  .security-points {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .header-phone-box,
  .btn-header {
    display: none;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  /* Hero 5 Honeycombs Swipeable Ribbon on Mobile */
  .hero-honeycombs-wrapper {
    margin: 1.5rem 0 2.5rem;
  }

  .hero-hex-cluster {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 10px 1.5rem 24px;
    justify-content: flex-start;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    scrollbar-width: none;
  }

  .hero-hex-cluster::-webkit-scrollbar {
    display: none;
  }

  .hero-hex-row {
    display: contents;
  }

  .hero-hex-row-2 {
    margin-top: 0;
  }

  .hero-hex-cell {
    flex: 0 0 270px;
    width: 270px;
    height: 205px;
    scroll-snap-align: center;
  }

  .hero-hex-overlay {
    padding: 16px 12px 14px;
  }

  .hero-hex-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  .hero-hex-title {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .hero-hex-spec {
    font-size: 0.65rem;
  }

  .hero-metrics-bar {
    padding: 2rem 1.5rem;
    margin-top: 2.25rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .metric-item {
    padding: 0;
    text-align: center;
    align-items: center;
  }

  .metric-item:not(:last-child)::after {
    display: block;
    position: absolute;
    bottom: -1.125rem;
    left: 20%;
    right: 20%;
    top: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  }

  .metric-accent,
  .metric-number {
    justify-content: center;
    margin-bottom: 0.45rem;
  }

  .metric-content {
    align-items: center;
  }

  /* Honeycomb mobile stack */
  .honeycomb-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .honeycomb-stage::before,
  .honeycomb-stage::after,
  .honeycomb-center-seam,
  .honeycomb-center-crosshair-top,
  .honeycomb-center-badge-bottom {
    display: none;
  }

  .honeycomb-cell-left,
  .honeycomb-cell-right {
    height: 290px;
  }

  /* Service pillars mobile stack */
  .service-pillars-row {
    grid-template-columns: 1fr;
  }

  .service-pillar-col {
    padding: 2rem 1.25rem;
  }

  .service-pillar-col:not(:last-child)::after {
    right: 15%;
    left: 15%;
    top: auto;
    bottom: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 157, 121, 0.35), transparent);
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
