/* ─────────────────────────────────────────
   WERNICK GROUP — styles.css
   ───────────────────────────────────────── */

/* ── Custom Properties ── */
:root {
  --bg-primary:    #ffffff;
  --bg-alt:        #f4f6f9;
  --bg-card:       #f9fafb;
  --bg-card-hover: #eef2f7;
  --navy:          #1e3a5f;
  --navy-light:    #2563a8;
  --navy-glow:     rgba(30, 58, 95, 0.12);
  --white:         #ffffff;
  --text-dark:     #0f1720;
  --text-body:     #374151;
  --gray-100:      #f3f4f6;
  --gray-400:      #6b7280;
  --gray-600:      #9ca3af;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
  --nav-h:         80px;
  --radius:        4px;
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.alt-section {
  background: var(--bg-alt);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 1rem;
}
.section-label.centered { text-align: center; }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}
.section-heading.centered { text-align: center; }

.body-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

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

/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.15s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }

/* ─────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1); /* white on hero */
  transition: opacity var(--transition), filter var(--transition);
}
#navbar.scrolled .nav-logo img {
  filter: brightness(0); /* black on white nav */
}
.nav-logo:hover img { opacity: 0.75; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Nav tab buttons */
.nav-tab {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.3rem 0;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.nav-tab:hover { color: var(--white); }
.nav-tab.active { color: var(--white); border-bottom-color: var(--white); }
#navbar.scrolled .nav-tab { color: var(--gray-400); }
#navbar.scrolled .nav-tab:hover { color: var(--text-dark); }
#navbar.scrolled .nav-tab.active { color: var(--text-dark); border-bottom-color: var(--navy); }

.nav-page-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 2px solid transparent;
  padding: 0.3rem 0;
  transition: color var(--transition), border-color var(--transition);
}
.nav-page-link:hover,
.nav-page-link.active {
  color: var(--white);
  border-bottom-color: var(--white);
}
#navbar.scrolled .nav-page-link { color: var(--gray-400); }
#navbar.scrolled .nav-page-link:hover,
#navbar.scrolled .nav-page-link.active {
  color: var(--text-dark);
  border-bottom-color: var(--navy);
}

/* Mobile tab buttons (match mobile-link style) */
.mobile-tab {
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

/* Hide tab sections by default; show when active */
.tab-section { display: none; }
.tab-section.tab-visible { display: block; }

.btn-nav {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}
.btn-nav:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white); /* white on hero */
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}
#navbar.scrolled .hamburger span { background: var(--text-dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 1.5rem 2rem;
  gap: 0;
}
.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--navy); }
.mobile-link:last-child { border-bottom: none; }

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 22, 0.9) 0%, rgba(10, 19, 31, 0.74) 38%, rgba(10, 19, 31, 0.34) 72%, rgba(10, 19, 31, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 12, 22, 0.52) 0%, rgba(5, 12, 22, 0.22) 44%, rgba(5, 12, 22, 0.72) 100%),
    url('hero-multifamily-investments.png') center / cover no-repeat;
  transform: scale(1.02);
}

/* Subtle texture and vignette */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255,255,255,0.08) 0%, transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.35));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 820px;
}

.animate-fade {
  animation: fadeUp 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.3s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #d6b36a;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto 1.1rem;
  line-height: 1.7;
}

.hero-slogan {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  color: #d6b36a;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.45;
}

.hero-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}
.hero-cta:hover {
  background: var(--navy);
  border-color: var(--navy);
}

/* ─────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.photo-frame {
  position: relative;
  aspect-ratio: 3/4;
  max-height: 580px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.photo-initials {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--navy-light);
  background: var(--bg-card);
  border: 1px solid rgba(30,58,95,0.3);
}

/* Decorative corner accent */
.photo-frame::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  width: 60px; height: 60px;
  border-top: 2px solid var(--navy);
  border-left: 2px solid var(--navy);
  z-index: 1;
}
.photo-frame::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 60px; height: 60px;
  border-bottom: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
  z-index: 1;
}

/* ─────────────────────────────────────────
   STATS
   ───────────────────────────────────────── */
#stats {
  background: var(--navy);
  padding: 70px 0;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 1rem 2rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   SPECIALTIES
   ───────────────────────────────────────── */
#specialties { padding-bottom: 0; }
#specialties .container { padding-bottom: 3rem; }

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.specialty-card {
  position: relative;
  padding: 6rem 4rem;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  cursor: pointer;
  transition: background var(--transition);
  background:
    radial-gradient(ellipse at 30% 70%, rgba(30,58,95,0.4) 0%, transparent 70%),
    linear-gradient(160deg, #0d1a2e 0%, #080d15 100%);
}

.specialty-card:first-child {
  border-right: 1px solid rgba(30,58,95,0.3);
}

.specialty-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,58,95,0);
  transition: background var(--transition);
  pointer-events: none;
}
.specialty-card:hover .specialty-overlay {
  background: rgba(30,58,95,0.2);
}

.specialty-body {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.specialty-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  color: var(--navy-light);
  opacity: 0.8;
}
.specialty-icon svg { width: 100%; height: 100%; }

.specialty-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.specialty-card p {
  font-size: 0.93rem;
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.specialty-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-light);
  transition: color var(--transition);
}
.specialty-card:hover .specialty-link { color: var(--white); }

/* ─────────────────────────────────────────
   TRANSACTION GRIDS
   ───────────────────────────────────────── */
.tx-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 1px;
  background: rgba(30,58,95,0.15);
  /* Give featured cards a fixed height so photos fill nicely */
}
.tx-featured .tx-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tx-standard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.06);
}

.tx-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  position: relative;
  transition: background var(--transition);
  overflow: hidden;
}
.tx-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.tx-card:hover { background: var(--bg-alt); }
.tx-card:hover::before { transform: scaleX(1); }

/* Featured cards — photo reveal on hover */
.tx-card.featured {
  padding: 2.5rem 2rem;
  background-color: #0d1520;
  background-size: cover;
  background-position: center;
  transition: background-size 0.6s ease;
}
.tx-card.featured:hover {
  background-size: 110%;
  background-color: #0d1520;
}

/* Dark overlay that lifts on hover to reveal photo */
.tx-card.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 12, 25, 0.95) 0%,
    rgba(10, 20, 38, 0.80) 50%,
    rgba(10, 20, 38, 0.65) 100%
  );
  transition: opacity 0.45s ease;
  z-index: 0;
  pointer-events: none;
}
.tx-card.featured:hover::after {
  opacity: 0.55;
}

/* Keep bottom-line indicator above overlay */
.tx-card.featured::before { z-index: 2; }

/* Lift all card content above the overlay */
.tx-card.featured .tx-badge,
.tx-card.featured .tx-name,
.tx-card.featured .tx-location,
.tx-card.featured .tx-price {
  position: relative;
  z-index: 1;
}

/* Property-specific default photos */
.tab-multifamily .tx-featured .tx-card:nth-child(1) {
  background-image: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=900&q=80');
  background-position: center 42%;
}
.tab-multifamily .tx-featured .tx-card:nth-child(2) {
  background-image: url('https://images.unsplash.com/photo-1768638687896-35bde623d532?auto=format&fit=crop&w=900&q=80');
  background-position: center 48%;
}
.tab-multifamily .tx-featured .tx-card:nth-child(3) {
  background-image: url('https://images.unsplash.com/photo-1767818375684-8b81eb234608?auto=format&fit=crop&w=900&q=80');
  background-position: center 45%;
}
.tab-multifamily .tx-featured .tx-card:nth-child(4) {
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=900&q=80');
  background-position: center 44%;
}

.tab-industrial .tx-featured .tx-card:nth-child(1) {
  background-image: url('https://images.unsplash.com/photo-1758304481470-e575d1d44efa?auto=format&fit=crop&w=900&q=80');
  background-position: center 48%;
}
.tab-industrial .tx-featured .tx-card:nth-child(2) {
  background-image: url('https://images.unsplash.com/photo-1760921678729-9658c8b792bb?auto=format&fit=crop&w=900&q=80');
  background-position: center 52%;
}
.tab-industrial .tx-featured .tx-card:nth-child(3) {
  background-image: url('https://images.unsplash.com/photo-1758789667762-56175fe4601c?auto=format&fit=crop&w=900&q=80');
  background-position: center 44%;
}
.tab-industrial .tx-featured .tx-card:nth-child(4) {
  background-image: url('https://images.unsplash.com/photo-1764046155497-ad7e50737ffa?auto=format&fit=crop&w=900&q=80');
  background-position: center 50%;
}

.tx-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(37, 99, 168, 0.4);
  color: var(--navy-light);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}
.tx-card.featured .tx-badge {
  border-color: rgba(37,99,168,0.7);
  color: #7eb3e8;
}

/* Standard cards: dark text */
.tx-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.tx-location {
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}
.tx-price {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
}

/* Featured cards: light text */
.tx-card.featured .tx-name {
  font-size: 1.2rem;
  color: var(--white);
}
.tx-card.featured .tx-location { color: rgba(255,255,255,0.5); }
.tx-card.featured .tx-price { color: #7eb3e8; }

/* ─────────────────────────────────────────
   INDUSTRIAL PLACEHOLDER
   ───────────────────────────────────────── */
.placeholder-state {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.placeholder-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  color: var(--navy);
  opacity: 0.4;
}
.placeholder-icon svg { width: 100%; height: 100%; }

.placeholder-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.placeholder-sub {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-outline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ─────────────────────────────────────────
   PRESS
   ───────────────────────────────────────── */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(30,58,95,0.12);
}

.subpage {
  background: var(--bg-alt);
}

.press-page {
  padding-top: calc(var(--nav-h) + 70px);
}

.press-card {
  min-height: 210px;
  background: var(--white);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.press-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}

.press-card:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 32, 0.08);
}
.press-card:hover::before { transform: scaleY(1); }

.press-source {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 1.15rem;
}

.press-card h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.press-action {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color var(--transition);
}
.press-card:hover .press-action { color: var(--navy); }

/* ─────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────── */
.contact-container {
  text-align: center;
  max-width: 700px;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-phone {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.contact-phone:hover { color: var(--navy-light); }

.contact-email {
  display: block;
  font-size: 1.1rem;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.contact-email:hover { color: var(--navy-light); }

.contact-name {
  font-size: 0.85rem;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-name span { color: var(--navy); }

/* Decorative line above heading */
#contact .section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--navy);
  margin: 1.2rem auto 0;
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
#footer {
  background: #060a0f;
  border-top: 1px solid rgba(30,58,95,0.3);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.footer-logo:hover { opacity: 1; }

.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-600);
  letter-spacing: 0.04em;
}

.footer-phone {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.footer-phone:hover { color: var(--white); }

/* ─────────────────────────────────────────
   PROPERTY MAP
   ───────────────────────────────────────── */
.map-hint {
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

#property-map-section { padding-bottom: 0; }

#properties-map {
  width: 100%;
  height: 520px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* Custom Leaflet markers */
.wg-marker {
  width: 14px;
  height: 14px;
  background: var(--navy);
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.wg-marker.featured {
  width: 18px;
  height: 18px;
  background: var(--navy-light);
}
.wg-marker.industrial {
  background: #0f766e;
}
.wg-marker.industrial.featured {
  background: #14b8a6;
}
.wg-marker.active {
  background: #d97706;
  border-color: #fff;
  transform: scale(1.6);
  box-shadow: 0 3px 12px rgba(217,119,6,0.45);
  z-index: 999 !important;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-family: var(--font-sans);
  padding: 0;
}
.leaflet-popup-content {
  margin: 0;
  padding: 1rem 1.25rem;
  min-width: 160px;
}
.wg-popup-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.wg-popup-loc  { font-size: 0.78rem; color: var(--gray-400); }
.wg-popup-units {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-top: 0.4rem;
}
.leaflet-popup-tip { background: #fff; }

/* Active tx-card highlight */
.tx-card.map-active {
  outline: 2px solid #d97706;
  outline-offset: -2px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .photo-frame {
    max-height: 400px;
    aspect-ratio: 4/3;
  }
  .photo-frame::before, .photo-frame::after { display: none; }

  .specialties-grid {
    grid-template-columns: 1fr;
  }
  .specialty-card:first-child { border-right: none; border-bottom: 1px solid rgba(30,58,95,0.3); }
  .specialty-card { min-height: 340px; padding: 4rem 2.5rem; }

  .tx-featured,
  .tx-standard {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-grid { gap: 0; }
  .stat-item  { padding: 0.75rem 1.25rem; }

  .footer-inner { justify-content: center; text-align: center; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .section { padding: 70px 0; }

  .hamburger { display: flex; }
  .btn-nav   { display: none; }
  .nav-phone { display: none; }
  .nav-tab   { display: none; }
  .nav-page-link { display: none; }

  .hero-heading { font-size: 2.2rem; }

  .tx-featured,
  .tx-standard {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Compact cards on mobile */
  .tx-card          { padding: 1.1rem 1rem; }
  .tx-card.featured { padding: 1.4rem 1rem; min-height: 160px; }
  .tx-badge         { font-size: 0.62rem; padding: 0.2rem 0.5rem; margin-bottom: 0.5rem; }
  .tx-name          { font-size: 0.88rem; }
  .tx-card.featured .tx-name { font-size: 0.95rem; }
  .tx-location      { font-size: 0.72rem; }

  .stats-grid {
    flex-direction: column;
    gap: 0;
  }
  .stat-divider {
    width: 80px;
    height: 1px;
    background: rgba(255,255,255,0.15);
  }
  .stat-item { padding: 1.5rem 1rem; }

  .specialty-card { padding: 3rem 1.75rem; min-height: 280px; }

  .press-grid {
    grid-template-columns: 1fr;
  }
  .press-card {
    min-height: 170px;
    padding: 1.35rem;
  }

  .contact-phone { font-size: 2.5rem; }
}
