@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary: #B4002F;
  --primary-hover: #9a0028;
  --black: #1D1D1B;
  --dark: #202020;
  --white: #FFFFFF;
  --gray-50: #F7F3F2;
  --gray-100: #F2EEED;
  --gray-200: #DEDEDE;
  --gray-300: #C0C0C0;
  --gray-500: #808080;
  --gray-700: #606060;
  --gray-800: #404040;
  --font: 'Raleway', system-ui, -apple-system, sans-serif;
  --wide: 1240px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--gray-800); background: var(--white); font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.dm-wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.dm-wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* Utility bar */
.dm-util {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
  font-size: 11px; letter-spacing: 0.06em; color: var(--gray-700);
}
.dm-util-inner {
  max-width: 1440px; margin: 0 auto; padding: 8px 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; align-items: center;
}
.dm-util a { transition: color 0.2s; }
.dm-util a:hover { color: var(--primary); }

/* Header — Barnes sticky white */
.dm-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--white); border-bottom: 1px solid var(--gray-100);
}
.dm-header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.dm-logo img { height: 40px; }
.dm-nav { display: flex; align-items: center; gap: 28px; }
.dm-nav > a, .dm-nav-item > button {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--black); transition: color 0.2s; padding: 8px 0;
}
.dm-nav > a:hover, .dm-nav-item:hover > button { color: var(--primary); }
.dm-nav-item { position: relative; }
.dm-nav-item > button { display: flex; align-items: center; gap: 4px; }
.dm-mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 280px; background: var(--white); border: 1px solid var(--gray-200);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08); padding: 20px 24px;
  opacity: 0; visibility: hidden; transition: all 0.25s; pointer-events: none;
}
.dm-nav-item:hover .dm-mega { opacity: 1; visibility: visible; pointer-events: auto; }
.dm-mega h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-100);
}
.dm-mega a { display: block; padding: 7px 0; font-size: 13px; color: var(--gray-700); transition: color 0.15s, padding-left 0.15s; }
.dm-mega a:hover { color: var(--primary); padding-left: 4px; }
.dm-header-actions { display: flex; align-items: center; gap: 16px; }
.dm-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; background: var(--primary); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s;
}
.dm-btn-primary:hover { background: var(--primary-hover); }
.dm-btn-dark {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; background: var(--dark); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s;
}
.dm-btn-dark:hover { background: var(--black); }
.dm-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border: 1px solid var(--primary); color: var(--primary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.2s;
}
.dm-btn-outline:hover { background: var(--primary); color: var(--white); }
.dm-menu-btn { display: none; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); }

/* Mobile drawer */
.dm-drawer { position: fixed; inset: 0; z-index: 950; pointer-events: none; }
.dm-drawer.open { pointer-events: auto; }
.dm-drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.35s; }
.dm-drawer.open .dm-drawer-bg { opacity: 1; }
.dm-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(380px, 92vw); height: 100%;
  background: var(--white); overflow-y: auto; transform: translateX(100%);
  transition: transform 0.4s var(--ease); padding: 64px 28px 40px;
}
.dm-drawer.open .dm-drawer-panel { transform: translateX(0); }
.dm-drawer-close { position: absolute; top: 16px; right: 20px; font-size: 28px; color: var(--black); }
.dm-drawer-group { margin-bottom: 24px; }
.dm-drawer-group h3 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.dm-drawer-group a { display: block; padding: 8px 0; font-size: 14px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }

/* Hero carousel + search — Barnes bp-003 */
.dm-hero { position: relative; height: min(85vh, 720px); overflow: hidden; }
.dm-hero-slides { position: absolute; inset: 0; }
.dm-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center;
}
.dm-hero-slide.active { opacity: 1; }
.dm-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.21); z-index: 1; }
.dm-hero-search {
  position: absolute; z-index: 3; bottom: clamp(32px, 6vh, 64px); left: 50%; transform: translateX(-50%);
  width: min(920px, 94vw); background: var(--white); box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.dm-search-tabs { display: flex; border-bottom: 1px solid var(--gray-200); }
.dm-search-tab {
  flex: 1; padding: 14px 16px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500);
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.dm-search-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.dm-search-body { padding: 20px 24px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.dm-search-body label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-700); margin-bottom: 6px; }
.dm-search-body input, .dm-search-body select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200);
  font-family: var(--font); font-size: 14px; color: var(--gray-800); background: var(--white);
}
.dm-search-body input:focus, .dm-search-body select:focus { outline: none; border-color: var(--primary); }
.dm-hero-dots { position: absolute; z-index: 2; bottom: 180px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dm-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background 0.3s; }
.dm-hero-dot.active { background: var(--white); }

/* Tagline */
.dm-tagline { padding: 56px 0 40px; text-align: center; background: var(--white); }
.dm-tagline h1 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 300; color: var(--black);
  max-width: 820px; margin: 0 auto; line-height: 1.35;
}

/* Dark split section — bc-051 */
.dm-dark-split { background: var(--black); color: var(--white); }
.dm-dark-split-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.dm-dark-split-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.dm-dark-split-content { padding: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.dm-dark-split-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 400; margin-bottom: 16px; line-height: 1.3; }
.dm-dark-split-content p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 24px; max-width: 480px; }

/* Sections */
.dm-section { padding: clamp(48px, 7vh, 72px) 0; }
.dm-section-gray { background: var(--gray-50); }
.dm-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.dm-section-head h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 400; color: var(--black); }
.dm-section-head p { font-size: 14px; color: var(--gray-700); max-width: 520px; margin-top: 8px; }
.dm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }

/* Property carousel */
.dm-carousel-wrap { overflow: hidden; }
.dm-carousel-track { display: flex; gap: 16px; transition: transform 0.45s var(--ease); }
.dm-prop-card {
  flex: 0 0 calc(33.333% - 11px); min-width: 280px;
  background: var(--white); border: 1px solid var(--gray-200); transition: box-shadow 0.3s;
}
.dm-prop-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.dm-prop-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.dm-prop-body { padding: 16px 18px 20px; }
.dm-prop-body h3 { font-size: 1rem; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.dm-prop-meta { font-size: 13px; color: var(--gray-500); }
.dm-prop-price { font-size: 14px; font-weight: 600; color: var(--primary); margin-top: 8px; }
.dm-carousel-nav { display: flex; align-items: center; gap: 12px; }
.dm-carousel-btn {
  width: 40px; height: 40px; border: 1px solid var(--gray-200); background: var(--white);
  font-size: 18px; color: var(--gray-800); transition: all 0.2s;
}
.dm-carousel-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Category cards — bc-006 */
.dm-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dm-cat-card {
  position: relative; height: 340px; overflow: hidden; display: block;
}
.dm-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.dm-cat-card:hover img { transform: scale(1.05); }
.dm-cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  display: flex; align-items: flex-end; justify-content: center; padding: 24px;
}
.dm-cat-overlay span {
  color: var(--white); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
}

/* Split CTA */
.dm-split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--gray-50); }
.dm-split-cta img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.dm-split-cta-content { padding: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.dm-split-cta-content h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 400; margin-bottom: 12px; color: var(--black); }
.dm-split-cta-content p { font-size: 14px; color: var(--gray-700); line-height: 1.65; margin-bottom: 24px; }

/* News carousel — dark */
.dm-news-section { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.dm-news-section::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="1" cy="1" r="0.5" fill="rgba(255,255,255,0.03)"/></svg>');
}
.dm-news-track { display: flex; gap: 20px; transition: transform 0.45s var(--ease); }
.dm-news-card {
  flex: 0 0 calc(33.333% - 14px); min-width: 280px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 24px;
  transition: background 0.3s;
}
.dm-news-card:hover { background: rgba(255,255,255,0.1); }
.dm-news-date { font-size: 11px; color: var(--gray-300); margin-bottom: 6px; }
.dm-news-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.dm-news-card h3 { font-size: 1rem; font-weight: 500; line-height: 1.4; }

/* Newsletter */
.dm-newsletter { text-align: center; padding: 56px 24px; background: var(--gray-50); }
.dm-newsletter h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 8px; color: var(--black); }
.dm-newsletter p { font-size: 14px; color: var(--gray-700); margin-bottom: 24px; }
.dm-newsletter-form { display: flex; max-width: 480px; margin: 0 auto; gap: 0; }
.dm-newsletter-form input {
  flex: 1; padding: 14px 16px; border: 1px solid var(--gray-200); font-family: var(--font); font-size: 14px;
}
.dm-newsletter-form input:focus { outline: none; border-color: var(--primary); }

/* Values */
.dm-values { padding: 56px 0; }
.dm-values h2 { font-size: 1.5rem; font-weight: 400; margin-bottom: 16px; color: var(--black); }
.dm-values p { font-size: 14px; color: var(--gray-700); line-height: 1.7; max-width: 780px; margin-bottom: 12px; }
.dm-link { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.dm-link:hover { text-decoration: underline; }

/* Page hero */
.dm-page-hero { padding: 48px 0 40px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); margin-top: 0; }
.dm-page-hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 300; color: var(--black); margin-bottom: 10px; }
.dm-page-hero p { font-size: 14px; color: var(--gray-700); max-width: 600px; }
.dm-breadcrumb { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }

.dm-content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dm-card { border: 1px solid var(--gray-200); background: var(--white); overflow: hidden; transition: box-shadow 0.3s; }
.dm-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.dm-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.dm-card-body { padding: 20px; }
.dm-card-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--black); }
.dm-card-body p { font-size: 13px; color: var(--gray-700); margin-bottom: 14px; }
.dm-notice { padding: 16px 18px; border-left: 3px solid var(--primary); background: var(--gray-50); font-size: 13px; color: var(--gray-700); margin-top: 28px; }

/* Footer — Barnes accordion style */
.dm-footer { background: var(--dark); color: var(--gray-300); font-size: 13px; }
.dm-footer-nav { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dm-footer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.dm-footer-grid h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 14px;
}
.dm-footer-grid a { display: block; padding: 4px 0; font-size: 12px; transition: color 0.15s; }
.dm-footer-grid a:hover { color: var(--white); }
.dm-footer-dest { padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dm-footer-dest h4 { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.dm-dest-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dm-dest-links a { font-size: 12px; transition: color 0.15s; }
.dm-dest-links a:hover { color: var(--white); }
.dm-footer-bottom {
  padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 11px;
}
.dm-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.dm-footer-legal a:hover { color: var(--white); }
.dm-form-thanks { display: none; color: var(--primary); margin-top: 12px; font-size: 14px; }

@media (max-width: 1100px) {
  .dm-nav { display: none; }
  .dm-menu-btn { display: block; }
  .dm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .dm-dark-split-inner, .dm-split-cta, .dm-content-grid { grid-template-columns: 1fr; }
  .dm-prop-card, .dm-news-card { flex: 0 0 85%; }
  .dm-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .dm-search-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dm-util { display: none; }
  .dm-cat-grid, .dm-footer-grid { grid-template-columns: 1fr; }
  .dm-search-body { grid-template-columns: 1fr; }
  .dm-newsletter-form { flex-direction: column; }
  .dm-hero-dots { bottom: 240px; }
}
