/* =================================================================
   Denri Grupp — modern minimalism
   Type: Inter Tight + IBM Plex Mono
   Palette: warm off-white, deep graphite, sage accent
   ================================================================= */

:root {
  --bg:           #f5f3ee;       /* warm off-white */
  --bg-alt:       #ebe8e1;       /* slightly deeper */
  --ink:          #1a1a17;       /* near-black warm */
  --ink-2:        #4a4a45;       /* secondary */
  --ink-3:        #8a877f;       /* tertiary / mono */
  --line:         rgba(26,26,23,0.10);
  --line-strong:  rgba(26,26,23,0.20);
  --accent:       oklch(0.55 0.08 145);   /* muted sage */
  --accent-soft:  oklch(0.92 0.03 145);

  --serif: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:  "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x: clamp(20px, 5vw, 88px);
  --section-y: clamp(56px, 7vw, 96px);
  --maxw: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: sticky;
  left: 0; right: 0;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { height: 36px; width: auto; display: block; }
.nav__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14.5px;
  letter-spacing: -0.005em;
}
.nav__links a {
  color: var(--ink-2);
  position: relative;
  padding: 6px 2px;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.lang-btn {
  color: var(--ink-3);
  transition: color .2s ease;
}
.lang-btn.is-active { color: var(--ink); }
.lang-btn:hover { color: var(--ink); }
.lang-sep { color: var(--ink-3); }

/* =================================================================
   COMMON
   ================================================================= */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--bg-alt); }
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section__head { margin-bottom: 40px; }
.section__head--row {
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}
.section__num {
  display: inline-flex;
  gap: 8px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.section__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.section__intro {
  max-width: none;
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 56px;
  line-height: 1.6;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.prose p {
  margin: 0 0 1.1em;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 56ch;
}
.prose p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  color: #fff;
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* =================================================================
   HERO — full-bleed image
   ================================================================= */
.hero {
  position: relative;
  height: clamp(520px, 70vh, 720px);
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #1a1a17;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,15,12,0.55) 0%,
      rgba(15,15,12,0.20) 35%,
      rgba(15,15,12,0.55) 75%,
      rgba(15,15,12,0.85) 100%);
}

.hero__inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(36px, 5vw, 60px);
  color: var(--bg);
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  align-content: end;
}
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.eyebrow--light { color: rgba(245,243,238,0.85); }
.eyebrow--light .dot { background: var(--accent); }
.hero__loc {
  color: rgba(245,243,238,0.6);
  letter-spacing: 0.18em;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
  color: #f5f3ee !important;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: #d6e6d2 !important;
}
.hero__bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
}
.hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: rgba(245,243,238,0.85);
  max-width: 50ch;
  margin: 0;
}
.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-self: end;
}
@media (max-width: 760px) {
  .hero__cta { justify-self: start; }
}

.btn--light {
  border: 1px solid rgba(245,243,238,0.4);
  color: var(--bg);
  background: transparent;
}
.btn--light:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.hero__stats--bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding: 22px var(--pad-x);
  border-top: 1px solid rgba(245,243,238,0.18);
  color: var(--bg);
}
@media (max-width: 760px) {
  .hero__stats--bar { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
}
.hero__stats--bar div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 22px;
  border-left: 1px solid rgba(245,243,238,0.12);
}
.hero__stats--bar div:first-child { border-left: 0; padding-left: 0; }
.hero__stats--bar dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.55);
  margin: 0;
}
.hero__stats--bar dd {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--bg);
}




/* =================================================================
   SERVICES
   ================================================================= */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
.service {
  padding: 36px 28px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  transition: background .25s ease;
}
.service:hover { background: var(--accent-soft); }
.service__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.service__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 4px 0 0;
}
.service__text {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
  max-width: 36ch;
}

/* =================================================================
   WHY
   ================================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: var(--bg);
  padding: 32px 26px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}
.why-card__index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.why-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0;
}
.why-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* =================================================================
   PROPERTIES
   ================================================================= */
.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 880px) { .property-grid { grid-template-columns: 1fr; } }

.property {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.property__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd;
}
.property__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9);
  display: block;
  transition: transform 1.2s ease;
}
.property:hover .property__media img { transform: scale(1.04); }

.property__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 10px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-radius: 4px;
}
.property__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.property__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}
.property__addr {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0;
}
.property__tags {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.property__tags li {
  padding: 5px 10px;
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  background: var(--bg-alt);
  border-radius: 999px;
}
.property__desc {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 4px 0 0;
  max-width: 50ch;
}

/* =================================================================
   CONTACT
   ================================================================= */
.section--contact { background: var(--ink); color: var(--bg); border-top-color: var(--ink); }
.section--contact .section__num,
.section--contact .mono { color: rgba(245,243,238,0.5); }
.section--contact .section__title { color: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; align-items: start; } }
.contact-grid__lede {
  font-size: 18px;
  color: rgba(245,243,238,0.7);
  max-width: 46ch;
  margin: 24px 0 0;
}
.contact-grid__cards {
  display: grid;
  gap: 14px;
}
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid rgba(245,243,238,0.15);
  border-radius: 8px;
  transition: all .25s ease;
}
.contact-card:hover {
  border-color: rgba(245,243,238,0.6);
  background: rgba(245,243,238,0.04);
}
.contact-card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245,243,238,0.5);
  min-width: 80px;
}
.contact-card__value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--bg);
}
.contact-card__cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(245,243,238,0.7);
}
.contact-card--addr { cursor: default; }
.contact-card--addr:hover { background: transparent; border-color: rgba(245,243,238,0.15); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--bg-alt);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 880px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; } }

.footer__col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__col p {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.footer__col p.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer__tag {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 30ch;
  line-height: 1.5;
}
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* =================================================================
   Small screen tweaks
   ================================================================= */
.nav__burger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--pad-x) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  gap: 4px;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  padding: 14px 0;
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-child { border-bottom: 0; }

/* contact grid: align both columns to top so they line up */
.contact-grid { align-items: stretch !important; }

@media (max-width: 760px) {
  .nav__inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
  }
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__lang { font-size: 13px; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 720px) {
  .nav__inner { grid-template-columns: auto 1fr auto auto; }
  .nav__lang { justify-self: end; }
}
